Avoid pointing out their past mistakes. Instead, focus on the one at hand.
Praise them for their ability to admit their mistakes.
Praise them for their efforts and courage to overcome setbacks.
Mentor them on how to apologize when their mistakes have hurt others.
Help them look at the good side of getting things wrong!