Slide 1

Slide 1 text

How to write great error messages 
 @scottydocs 101 to 404s James Scott

Slide 2

Slide 2 text

How to write great error messages 
 @scottydocs 101 to 404s James Scott

Slide 3

Slide 3 text

This page is too large to be shown completely. ! This cost $50,000!

Slide 4

Slide 4 text

ERRORS EVOKE EMOTIONS

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

• Notification that something went wrong
 • Explanation of why it went wrong
 • Solution to the problem. 
 @scottydocs What is an error message?

Slide 7

Slide 7 text

• Unclear text that creates confusion • Badly written or contain jargon • Dead ends with no resolving steps. In reality… 
 @scottydocs

Slide 8

Slide 8 text

Programmer Administrator Everyone Audience: Who is the error for?

Slide 9

Slide 9 text

Problem exists between keyboard and computer. PEBKAC error: Be humble

Slide 10

Slide 10 text

Be humble: Apologise? Sorry, there seems to be a problem…

Slide 11

Slide 11 text

You have entered an illegal object name character. Remove the illegal object name character. Don’t make users feel like criminals!

Slide 12

Slide 12 text

Oops! Something went wrong… Be helpful: Don’t create dead ends! Please try again or check out our help centre. Oops! Something went wrong. 1 2

Slide 13

Slide 13 text

You have used the extension “.png” at the end of a name. The standard extension is “.png”. Use .png Use .png Cancel Be helpful: Avoid ambiguity

Slide 14

Slide 14 text

Something is wrong with your requested resources. Fill it properly and try again. Ambiguity creates questions What? Which? How?

Slide 15

Slide 15 text

Your API path must be unique. Ambiguity creates questions Choose a new path and try again. Which What How

Slide 16

Slide 16 text

• 8 words or less, readers understood 100%
 • 14 words readers understood 90%
 • 43 words + readers understood < 10%. Be concise 
 @scottydocs

Slide 17

Slide 17 text

Error: Password was not validated - invalid password - min character groups of 3 not fulfilled (error code: 400) Be clear: Avoid jargon Your password must contain: • A lowercase character • An uppercase character • A special character.

Slide 18

Slide 18 text

Be human: Avoid jargon 1 3 2 Resolution of dependency failed. Unhandled exception occurred in component of your application.

Slide 19

Slide 19 text

Be human: Show empathy

Slide 20

Slide 20 text

Be human: Use humour?

Slide 21

Slide 21 text

Whoops, you found a dead link… Should you use humour?

Slide 22

Slide 22 text

Humour: Frequent errors Bad, bad server. No donut for you. Unfortunately, the orkut.com server has acted out in an unexpected way. Hopefully, it will return to its helpful self if you try again in a few minutes.

Slide 23

Slide 23 text

Goose egg. There’s no information available. Humour: Translation issues

Slide 24

Slide 24 text

Humour: Easter eggs 
 @scottydocs

Slide 25

Slide 25 text

• Use humour with caution • Avoid for frequent or frustrating errors
 • Beware of translation issues • Best as an Easter Egg. Humour: Conclusion 
 @scottydocs

Slide 26

Slide 26 text


 @scottydocs Fail pets: Error mascots

Slide 27

Slide 27 text

Fail pets: The Fail Whale 
 @scottydocs

Slide 28

Slide 28 text

Fail pets: Symbols of failure?

Slide 29

Slide 29 text

Pros • Evoke empathy • Reduce frustration • Enable rapid recognition. Cons • Make errors more memorable • Association with failure • Translation issues. Fail pets: Pros & Cons 
 @scottydocs

Slide 30

Slide 30 text

Colour: Considerations OXYGEN 3% WARNING

Slide 31

Slide 31 text

Colour: Translation issues

Slide 32

Slide 32 text

Colour: Accessibility (A11y) Warning: User must be an admin Success: You created a password Error: There was a system error

Slide 33

Slide 33 text

A11y: Error forms 1. Adopt an “errors on top” approach. 2. Use clear + straight-forward language.
 3. Expose error to assistive technology. 
 @scottydocs

Slide 34

Slide 34 text

A11y: ARIA 
 @scottydocs ARIA (Accessible Rich Internet Applications) aria-describeby Password:
Password must be at least six characters
***** Password: * Password must be at least six characters

Slide 35

Slide 35 text

A11y: Check for yourself! www.a11yproject.com

Slide 36

Slide 36 text

hack noun a strategy or technique for managing one’s time or activities more efficiently My solution 
 @scottydocs

Slide 37

Slide 37 text

H A C K Helpful Humble Human Humour Audience Accessibility Concise Clear Knowledge

Slide 38

Slide 38 text

Sorry, this is the end of my presentation. Enjoy the rest of Write the Docs Prague! :( 
 @scottydocs

Slide 39

Slide 39 text

1. Real-time measurement of human salivary cortisol for the assessment of psychological stress using a smartphone - Choi, Kim, Yang, Lee, Joo and Jung (December 2014) 2. Non-Fatal Errors: Creating Usable Effective Error Messages - Emily Wilska. 3. Developing Windows Error Messages (O’Reilly)- Ben Ezzell. 4. Windows Dev Center Guidelines on Error Messages - Microsoft. 5. Towards a more civilised design: studying the effect of computers that apologise - Jeng-Yi Tzeng (January 2004) 6. The Effect of Apologetic Error Messages on User’s Self-Appraisal of Performance — Akgun, Cagiltay and Zeyrek (September 2018) 7. Information Technology Exception Messages: An investigation of compliance with the normative standards of warnings- Amer and Maris (September 2007) 8. Reader’s Degree of Understanding - The American Press Institute. 9. Technical Communication - Mike Markel (December 2014) 10. How to make brands sound human - Anna Pickard (June 2019) Resources

Slide 40

Slide 40 text

11. I'm Feeling Lucky: The Confessions of Google Employee Number 59- Douglas Edwards. 12. Translating Humour - The Problems of Translating Terry Pratchett - Linda Broeder (2007) 13. The Evolution of Fail Pets - Sean Rintell (November 2011). 14. The Quiet Death of the Tech Company Mascot - Bryan Lufkin (April 2014) 15. The Experience of Enchantment in Human-Computer Interaction - McCarthy, J., Wright, P., Wallace, J. & Dearden, A. (2005) 16. Killing the Fail Whale with Twitter’s Christopher Fry - Wired (November 2013) 17. A study of the metaphor of “Red” in Chinese Culture - Qiang Huang (November 2011). 18. How to Provide Accessible Error Identification - Level Access. 19. Error Messages: Being Humble, Human and Helpful - Kate Voss (2017 Resources