You learn more from your mistakes than you do from your successes.
I learned more from the mistakes than from the good things.
We do not learn so much by our successes as we learn by failures - our own and others! Especially if we see the failures properly corrected.
It's good to fail now and again - you learn a lot more out of failure than you do out of success.
I think you often learn from failure. Success just teaches you how great you were, but in fact it's knowing what will fail that will help you to make the right choices.
You will profit by the failure, and will avoid it another time. I have done a similar thing myself, in construction, often. Every failure teaches a man something, if he will learn.