What looks like a failure teaches us what not to do, what does not work. We have lessons to learn from our experiences.
or simply: