When someone makes a mistake they don't need you to scream and berate them in order for them to learn from it.
As a matter of fact your negative words and insults make them cringe. Which will stunt the natural growth they would have gained.
People can call it tough love and pretend like it will help you. But kicking someone after they have fallen isn't love at all.
Rubbing it in someones face so that they know that you know that they made a mistake is not helpful to them.
If you want to help them then let them see for themselves and learn from it. We all make mistakes throughout our life, that's just part of life, it's growing pains.
Give them encouraging words to help them get back on their feet.