Good error messages help users recover and stay on track, not frustrate them.
To write better error messages:
- consider all types of errors
- write like a human and avoid technical jargon
- avoid whimsy even when it's tempting, it can be perceived as dismissive
- use active voice
- give a clear way forward
- use consistent patterns.
How to write error messages that actually help users rather than frustrate them (8min) by Amy Hupe https://piccalil.li/blog/how-to-write-error-messages-that-actually-help-users-rather-than-frustrate-them/