EuroPython 2018

Writing good error messages

Speaker(s) Paul Keating

Anyone who has ever conducted an elementary programming course, or even answered a question on StackOverflow, will know that reading error messages is a skill that beginners have to learn. It is less widely appreciated that writing good error messages is also a skill that must be learnt. This talk is in two parts. The first covers the commonest error message gaffes: • Insufficiently explicit messages. • Issuing the same message for two different conditions. • Suppressing the stack trace. • Polluting the stack trace. The second part describes a way to ensure usable, actionable error messages, even when the writer of the message is not a professional coder. This was developed for an environment where superusers code up most of the dozens of data validation rules and the accompanying messages, and the application in which Python is embedded suppresses the stack trace.

in on Friday 27 July at 12:10 See schedule

Comments

  1. Gravatar
    Slides available at
    https://docs.google.com/presentation/d/1XYPPsL08RhpFWfdRWD-Kaa6b2HlyH0adhJo5ojffxDE/edit?usp=sharing
    — Paul Keating,

New comment