Just Say Felix Culpa

What about faults that actually end up with good results? It turns out that we are surrounded by them. They are everywhere. There is a handy Latin phrase for that too: felix culpa. It means happy fault. This refers to something you did wrong, something with immediate results that seem regrettable, but because of either a correction that took place in light of learning, or pure accident, something even better resulted that otherwise would not have taken place.

Source