This quote means that when you do something and it doesn’t work out the way you had hoped, it’s an important opportunity to learn not to do that thing again. It suggests that by recognizing our mistakes, we can use them as a way to improve ourselves and our decisions in the future.