Quote from the entrepreneur Richard Farleigh:
Do you remember your best and worst business decisions?
I can remember the worst ones. Psychologists say when something works well we put it down to ourselves, and when something goes badly we put it down to luck. I try the opposite. All you can say is you learnt from each one.
See also here, on the fascination of failure.