There are a few ways to perceive an error.
For some, it is a disaster. The error transforms itself from a detail into a belief of having messed up everything. It’s as if their life, project or plan had been solely based on one detail and getting it wrong disrupts their future.
For others, it is a failure. The error is seen as something they should have gotten right. Not being able to get it right makes them feel as if they personally failed. They might even understand from it, that they are a failure themselves.
A different way to see it is to see the error as information. The error becomes a resource allowing to learn. In such a case, it is a detail within the evaluation of an event. The result is independent of the error until a cause-effect relationship is established. The assessment of the result can determine the impact the error had on it or not. The error was a calculated risk, either a known one or an unknown one.
When failure or disaster appears, odds are that achieving the expected results was a must.
When information appeared, odds are that the mindset was based on curiosity.