Multiple Times

How has a failure, or apparent failure, set you up for later success?

There have been many instances of this and they typically fall into one of two categories:

1- a failure that prompts me to work harder to succeed the next time

2- a failure that confirms I should go in a different direction