What's in a Good Error Message?
What makes a good error message … it boils down to three pieces of information which should be conveyed by an error message: Context: What led to the error? The error itself: What exactly failed? Mitigation: What needs to be done in order to overcome the error?
So what makes a good error message then? To me, it boils down to three pieces of information which should be conveyed by an error message:
Context: What led to the error? What was the code trying to do when it failed?
The error itself: What exactly failed?
Mitigation: What needs to be done in order to overcome the error?