UXApp testing

Error Message UX: How to Write Errors Users Understand

Error message UX for apps and browser extensions: where to show errors, how to word them, examples of bad and good messages, and how to test them before users see them.

Real Tester team · · 7 min read

Illustration comparing two error messages in an extension popup, a vague one reading Error 403 with no next step, and a clear one explaining the sign-in expired with a Sign in again button, beside a checklist for good error messages.

Error message UX is the difference between a user who fixes a problem in five seconds and a user who uninstalls. Every app and browser extension fails sometimes: a network drops, a session expires, a form field is wrong. What users remember is not that something failed, but whether the product told them what happened and how to get past it.

This guide covers where error messages should appear, how to word them, common bad patterns with better versions, and how to test them before your users find them.

Key Takeaways

  • A good error message is visible, explains the problem in plain words and tells the user what to do next (Nielsen Norman Group).
  • Show the message near the problem and keep the user's input, so they can fix it instead of starting over.
  • Never fail silently. An extension that shows nothing when it breaks looks the same as one that does nothing.
  • Test error states on purpose: break the network, expire the session and enter bad data.

What makes a good error message?

A good error message does three jobs. Nielsen Norman Group groups its error message guidelines into the same three areas: visibility, communication and efficiency (NN/g).

  1. Visibility. People notice it, and it appears where the problem is.
  2. Communication. It says what happened in words the user understands.
  3. Efficiency. It helps the user recover quickly, without losing their work.

They all come back to one of the classic usability heuristics: help users recognize, diagnose and recover from errors. Our heuristic evaluation guide covers that heuristic and the other nine.

Where to show error messages

Near the problem

Show the message next to the field, button or item that caused it. A red banner at the top of a long form forces people to hunt for the field. In an extension popup, show the message inside the popup, next to the action that failed.

At the right moment

Do not show errors before the user has had a chance to finish. NN/g calls premature errors "a hostile pattern": a field that turns red while someone is still typing their email address feels like being scolded. Validate when the user leaves the field or submits.

With the right weight

Match the presentation to the impact:

Severity Presentation Example
Minor, fixable inline Text under the field "Enter a date in the future"
Action failed Message in place of the result, with a retry "Could not save. Check your connection and try again."
Blocking, needs a decision Dialog "You have unsaved changes. Leave anyway?"

Reserve dialogs for errors that truly need a decision. A modal for every small problem trains people to click it away without reading.

Not by color alone

A red border is easy to miss, and some users cannot tell red from other colors. Pair color with text and an icon.

How to word error messages

Use plain language

Write for the user, not for the developer. Codes and technical terms can go in a details section for support, but not in the main message.

  • Bad: "Error 403: Forbidden"
  • Better: "Your sign-in has expired. Sign in again to keep syncing."

Be specific

"Something went wrong" tells the user nothing. Say what failed and, if you know, why.

  • Bad: "An error occurred."
  • Better: "We could not save this page because it is a Chrome system page. Open any website to save it."

Say what to do next

Stating the problem is not enough. Every message should point to a next step: retry, edit a field, sign in, contact support, or wait.

  • Bad: "Invalid file."
  • Better: "This file is a .heic image. Upload a .jpg or .png, or convert it first."

Do not blame the user

Words like "invalid", "illegal" and "incorrect" sound like an accusation. Describe the problem and the fix instead.

  • Bad: "You entered an invalid email."
  • Better: "Enter an email address like [email protected]."

Keep humor out of it

A joke on an error screen rarely lands when someone has just lost their work. A short, calm, helpful message reads better.

Help users recover

The best error handling saves the user's effort:

  • Keep what they typed. Never clear a form because one field was wrong.
  • Offer the fix. If a city name has a typo, suggest the likely match. If a shortcut is taken, suggest a free one.
  • Retry automatically where safe. For temporary network errors, retry in the background and only show a message if it keeps failing.
  • Prevent the error. Disable a submit button until required fields are filled, confirm destructive actions, and warn before a likely mistake, such as sending a message that mentions an attachment without one.

Error messages in browser extensions

Extensions have failure modes that many web apps do not:

  • Unsupported pages. Many extensions cannot run on chrome:// pages, the Chrome Web Store or local files. Opening the popup there should explain it, not show a blank or broken panel.
  • Missing permissions. If a feature needs an optional permission the user declined, say so and offer a button to grant it.
  • Expired sign-in. Background sync that silently stops after a session expires is a common source of "it stopped working" reviews.
  • Service worker restarts. Under Manifest V3, state kept in memory can disappear. If an action fails because of it, recover or explain rather than doing nothing. Our guide to testing Manifest V3 service workers covers how to catch this.
  • Backend outages. If your server is down, say "We could not reach the server" instead of showing an empty list.

Silent failure matters beyond user experience. Chrome Web Store reviewers can reject an extension for functionality that does not work, and an extension that shows nothing when its backend fails can look broken during review. The post on the Yellow Magnesium rejection explains this in detail.

How to test your error messages

Error states rarely appear during normal development, so test them on purpose:

  1. List the failures. For each main action, write down what can go wrong: offline, slow network, server error, expired session, bad input, missing permission.
  2. Trigger each one. Use DevTools to go offline or throttle the network, block your API domain, sign out in another tab, and enter empty, very long or unusual input.
  3. Read every message as a new user. Does it say what happened? Does it say what to do? Would a non-technical user understand it?
  4. Check that input survives. After each error, is the user's work still there?
  5. Watch real people hit an error. In a usability session, ask "What would you do now?" when a message appears. Their answer tells you whether it works.

When you find a problem, record it with the same structure as a bug report: the steps that trigger it, the message shown, and the message you expected.

Error message checklist

  • Appears next to the problem, at the right time
  • Uses words the user knows, with no raw codes in the main text
  • Says what happened and why, if known
  • Gives a clear next step
  • Does not blame the user
  • Keeps the user's input
  • Uses text and an icon, not color alone
  • Never replaced by silence or an empty screen

Find the errors your users will hit

Your team knows the happy path by heart, which is exactly why error states go unnoticed. A Real Tester tester uses your extension or app on a clean setup across several sessions, hits the failures real users hit, and writes each one up with what happened, why it matters and a suggested fix in four reports covering UI/UX, features, competitors and store keywords. You can see a sample report or see pricing.

Frequently asked questions

What should a good error message include?

What went wrong, in plain language, and what the user can do next. If it helps, add why it happened, and keep any technical code in a secondary details area for support.

Should error messages include error codes?

Only as secondary information. A code helps support teams diagnose problems, but it should never be the main message a user reads.

How do I write an error message when I do not know the cause?

Say what failed and offer the most likely fixes, such as "We could not load your list. Check your connection and try again. If it keeps happening, contact support." That is still far more helpful than "Something went wrong."

TagsUXApp testing

See your product through a new user's eyes

A real tester installs it, uses it the way your users would, and writes down every place they got stuck.

Get my reports for $79

More articles

App testing

Bug Severity vs Priority: How to Triage Bug Reports

Bug severity vs priority explained for apps and browser extensions: definitions, severity levels, examples, a triage matrix and how to decide what to fix before release.

Real Tester team · · 7 min read

App testing

Test Plan Template for Apps and Browser Extensions

A free test plan template for apps and browser extensions: what to include, a filled-in example, and how to keep a one-page plan that a small team will actually use.

Real Tester team · · 6 min read

Back to blog