Don’t take everything as it is. There’s always something that is not given to you. The truth is always related to the information you have.
“All things are subject to interpretation whichever interpretation prevails at a given time is a function of power and not truth.”
- Friedrich Nietzsche
So, in relation with this concept, when you fail; you can always find something useful from it. So, a fail can become a success just because you didn’t took it as it.
A fail could become a success just because you didn’t gave up and find a way to turn it around.
You have the power to give up or keep going on. Your choice will influence the final result.