Help Users Recognize, Diagnose, and Recover from Errors
Error messages should be expressed in plain language (no error codes), precisely indicate the problem, and constructively suggest a solution.
If we couldn't prevent users from making a mistake, or if our system worked not as expected, the error messages should follow the best practices.
- Human language, instead of error codes and technical information useful for devs only
- Commonly used styling (red or orange color, depending on the severity of the message)
- Use icons to improve clarity and support accessibility
Language of error messages
Here are few examples of bad and good error messages. I don't claim that these are the best ones, my purpose is to convey the idea.
Further reading
Error Message Guidelines
Comprehensive guide from NNGroup about making correct error messages.
Heuristics #9: Help Users Recognize, Diagnose, & Recover from Errors-Simplified by the examples.
Comprehensive article by Harsh Gorasia.
Jakob Nielsen’s ninth usability heuristic for user interface design
Another useful article by Melissa Vela.