Failure Handling Patterns
Write errors that don't make me think

Write errors that don't make me think

11/19/2020

What this post added

This post introduces principles for designing effective error messages for developers. It emphasizes writing errors for users, suggesting causes and fixes, making them searchable, logging them appropriately, and avoiding excessive verbosity. It also provides a tactical style guide for error messages, including using standard Go error packages, lowercase and no punctuation, actionable messages, and specific phrasing like 'unable to...'.

Read the original post ↗