How to Write Good Error Messages

How to Write Good Error Messages

Mistakes are unavoidable in our lives. When users interact with a product, it is common for them to encounter points where they become stuck in response to their actions.

These situations can be frustrating for users if not handled appropriately within the product. It depends on the experience the product is providing to its users.

“A product should be usable enough to handle the user’s erroneous actions gracefully.”

Below are a few tips that enable you to define error messages that can provide a pleasant experience to users.

1. Be Clear And Not Ambiguous

Write error messages in clear and simple language. The user should be able to understand the problem while reading an error message.

If the error message is ambiguous and the user is not able to find the reason for the error message, then it is useless. Users cannot take any corrective actions to fix the problem, which significantly impacts the overall product experience.

No alt text provided for this image

Examples:

No alt text provided for this image
Windows error message does not give any clue to users.


No alt text provided for this image
Autodesk displays an ambiguous error message that contains no useful information

2. Be Short And Meaningful

The error message should contain the necessary information. Most of the time user is not willing to read a long story.

Be concise and write a short description that is meaningful for the user and gives him a clear idea of the problem and how to resolve it.

Avoid using redundant words and do not over-communicate the problem.

No alt text provided for this image

Examples:

No alt text provided for this image
The message is not meaningful for the user.


No alt text provided for this image
A message should not be as short as missing useful details.


3. Don’t Use Technical Jargon

Most of the users are not interested in the technical details of the problem that occurred. If a message contains technical terms or jargon, the user gets confused.

Try to use simple and plain language without referring to implementation details.

If there is a need to mention technical and complex details, then place them in a troubleshooting section and direct the user so that he can resolve the issue quickly.

No alt text provided for this image

Examples:

No alt text provided for this image
An example of a technical error message


No alt text provided for this image
The error message contains technical information

4. Be Humble — Don’t Blame User

A good error message is humble. It conveys the issues gracefully to its user without blaming him for his actions.

Users can perform an incorrect action again and again. But the designer’s responsibility is to inform them about their mistakes in a good way.

“A good way to incorporate a more human tone to your error messages is to think about explaining it out loud to someone. How does it sound when you speak it in conversation.” — Sonia Gregory

No alt text provided for this image

Examples:

No alt text provided for this image
An example of an insulting message


No alt text provided for this image
Another message that is harsh for the user

5. Avoid Negative Words

Certain negative words need to be avoided on the user interface. Since error messages are based on some unusual actions of the user, there is a chance that the system displays something disrespectful to the user.

John Ekman gives a very good example of using “yes” and “no”:

“Some years ago, while checking in at the airport in Stockholm on my way to the U.S., I asked the woman at the counter if it would be possible to get an upgrade to business class. Her response: “I’m sorry, but that’s not possible. You would have to pay extra for that.” Checking in for the return flight, I tried the same thing again, but this time the answer was: “Of course, sir! How would you like to pay for that?” So even though the seat availability and possibility for an upgrade were the same, I got two completely different answers: one “yes” and one “no.”

No alt text provided for this image

Examples:

No alt text provided for this image
This message is neither clear nor uses positive words


6. Give Direction to the User

A good error message has three parts: problem identification, cause details if helpful, and a solution if possible.

Whenever an error occurs, the user wants to fix it as soon as possible. The error message should have enough information for the user to guide him on how to get out of the erroneous situation.

The message can also direct the user to some other place or person from where he can get detailed help about the problem.

No alt text provided for this image

Examples:

No alt text provided for this image
In this message, the cause of the error and guidance for the solution is missing

7. Be Specific And Relevant

The message should contain relevant information so that the user can relate to the specified location and options easily.

Point out the exact location of the problem — where the user should go and what steps are needed to follow to resolve it.

If an error message contains vague information, the user will get confused and it becomes difficult for him to remove the error.

No alt text provided for this image


Examples:

No alt text provided for this image
Three possible causes of error are given in this message that can be confusing for the user


No alt text provided for this image
A message guiding the user in a precise way

8. Avoid Uppercase Text

Upper case text is difficult to read it gives an impact of shouting on the user.

An error message is a place where the user is informed about some critical scenario, so using upper-case text can give him a feeling of discouragement.


No alt text provided for this image

9. Provide Appropriate Actions

Actions are an important part of the error message. Appropriate actions provide guidance to the user about the next step.

Actions are possible routes to solve the problem. A message can contain one or more actions for the user.

“Give alert buttons succinct, logical titles. The best button titles consist of one or two words that describe the result of selecting the button.” — iOS guidelines

If the user has to perform specific actions to remove the error, then use the same action name as the button title.

No alt text provided for this image


Examples:

No alt text provided for this image
Clear and precise actions given in this error message


10. Use the Progressive Disclosure Approach

If there is detailed information related to a message that the user may not want to see, then place it in the Show/Hide section. It can be useful for an advanced user that may want to know about technical details.

Just make sure to place the least needed information in these sections as most of the time users will not go to the Show/Hide section.

No alt text provided for this image

Examples:

No alt text provided for this image
Users may not be interested in knowing the details at first glance


11. Use Proper Placement

It is very important to place an error message closer to the area where it belongs to. Users should not have to look here and there after reading the message that what it talks about.

For example, when the user is filling the information in a form, it is the best experience to provide validation error along with the controls it relates to.

Otherwise, the user will first find the erroneous control and then resolve it.

An error message should be visible and noticeable. A message appearing on a screen should display in the current view even user has scrolled the view to the top or bottom.

No alt text provided for this image

Conclusion

“The best error message is the one that never shows up” — Thomas Fuchs

It is good to avoid errors at all, but since we live in a world of humans, it is not possible to make everything perfect.

However, by following standard rules and guidelines, the errors can be handled in a helping way instead of scolding the user for his mistakes.

Originally posted on UX World.

Absolutely, a product that anticipates user errors and provides clear, helpful guidance greatly enhances the UX.

Like
Reply

Using a slightly different approach creates a bigger impact.

Agree facilitate the users with great experience

To view or add a comment, sign in

More articles by Saadia Minhas

  • How to Design Inline Editing and Validation in Tables

    Tables are an essential part of the user interface that helps users visualize a lot of data at once in an organized…

    2 Comments
  • How to Overcome Confirmation Bias in UX Design?

    Confirmation bias is the tendency to look for information or interpret the information in a way that supports our prior…

    2 Comments
  • 8 Useful Interview Tips for UX Designers

    An interview is a process that helps recruiters to find out a suitable person who can fulfill their requirements in a…

    1 Comment
  • A Usability Test on WhatsApp Web

    WhatsApp WhatsApp is a messaging service for mobile phones and web that allows you to send text messages, images, audio…

  • What Makes UX Design Your Passion?

    A user experience (UX) designer defines how a user feels while interacting with a product. Below is a set of skills…

  • 16 Quotes You Need to Read as UX Designer

    Quotes are the best source of inspiration and learning. While working on UX design, UX quotes act the similar way for…

    6 Comments
  • Why You Need UI Guidelines?

    What Are UI Guidelines? While working on UI design, few principles and guidelines are required to follow that help you…

  • How to Standout at Start of Your UX Career?

    UX Design is a career for you if you have relevant education, you are interested in design thinking, you want to study…

Others also viewed

Explore content categories