Better error messages

When programming, I tend to quickly dash off error messages such as: Invalid date: '28-Ap' which is hardly useful from a user’s perspective. The user may not know what do to fix the problem

A better error message should give the user enough information to fix the error. A message like the one below should be more appropriate:
Error: Invalid date format
Change to DD-MMM format: '28-Ap'

A better error message has two parts: 1) state the error precisely and 2) describe how the user can correct the error.

Better error messages, happier users…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s