An error message alerts a user of a problem after the user has taken action.

Error messages are hard stops that inform the user of a problem that’s already occurred and what to do next. These messages are different from alerts or warning messages that are soft stops that alert people to a potential problem in the future before it happens.

When we display an error message, we want to be truthful about what happened. We want to provide any information about the error we can, and we want to be specific.

Users don’t read every word. If we can clearly describe the error in one sentence, do it. The goal is to provide simple, clear guidance. Only include more information if it’s absolutely necessary.

Voice and tone

An error message is never a pleasant encounter. At the very minimum, they’re frustrating, and at their worst, they can cause a user to permanently leave the product.

Header

Body content

Call-to-action

TL;DR

When writing error messages, keep the following in mind: