Reprimanding is the goto solution to teach employees a lesson when they fuck up. Most corporates and startups follow this approach.
However, in reality, it does more harm than good to the employees. It pushes them away from the company and makes them less loyal to their leaders.
I once had a team lead who used to shout the crap out of me for every mistake I made. I was new to the system. I joined the company straight out of college.
What I truly needed was guidance and all I ever got was an earful. This not only made me lose respect for that one person but also ponder over the thought of leaving the company, multiple times.
If you want to be a good leader, empathize. People make mistakes. Understand their situation and guide them. You'll be a hero to them. A role model.
You can always put your anger aside and look at any situation with a calm mind. Do it.
It's easy to be selfish and angry. It's hard to be selfless and caring.
Choose the latter. Empathize.