There are no such things as mistakes just happy accidents.Bob Ross
Every mistake will always have the potential to be a learning experience. It may be an opportunity to try something new or see something from a different perspective.
The chance to learn a new direction or take a different path moving forward and benefit from the “mistake” should be seized much the same as an obvious golden opportunity. Every mistake can be a key to a new solution, perhaps one that no one knew was needed to begin with.