Here’s what I learned from my mentors: If someone makes a mistake, or does something you don’t think is right, you talk to them about it privately and give them the opportunity to correct it.
This not only gets the mistake corrected, but it offers a learning moment to the person, increases their understanding, and keeps them “on board” with the overall project. As a leader you’re being empathetic to that person and offering them benefit of the doubt. Often they aren’t being malicious they just don’t understand why something should be done a certain way. Why not teach them? Put yourself in their shoes and ask, “What do I know that this person doesn’t know, which would cause me to act like them in this situation if I didn’t know it.” That’s the very definition of empathy. Public shaming elicits people’s fight/flight response and it’s hard for them to learn in this state which is why a private consultation is more effective.