"Failure" always has a gift. The gift is an opportunity to learn a lesson.
The challenge with failure is it feels just awful. And when you feel awful, you're hardly in the mood to learn.
But this is a mistake. You've just paid your emotional tuition. The lesson is sitting right in front of you -- hiding in plain sight.
The only question is whether you open your eyes, look for that lesson, and learn from it.
Whether you accept the gift of the lesson is entirely up to you.
This is why I don't use the word "failure" in my personal vocabulary any more. I've replaced it with the phrase "feedback opportunity."
Have you accepted all the gifts life has given you?
It's worth thinking about that for a moment.