You can learn more from failure than success. (Here's why that's the case).
In failure you're forced to find out what part did not work. But in success you can believe everything you did was great, when in fact some parts my not have worked at all. Failure forces you to face reality.
Fred Brooks, author of The Mythical Man-Month