Teaching a Service to Report Errors So They Make Sense to Users and Machines
summary
Covers techniques for improving runtime error messages in a Go-based data storage system so they are meaningful to both users and machines. Discusses Go error-handling tools and practices beyond generic “Something went wrong” banners, with concrete examples from handling errors during data storage requests.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:10Error message problems
- 6:10User-friendly error requirements
- 10:45Substring matching challenges
- 12:09Constant errors limitations
- 13:30Structured errors in Go
- 15:15Error codes and arguments
- 17:48Panic for error handling
- 18:52Introducing ter library
- 23:26Migrating to new errors
- 25:33When to implement
- 25:55Q&A
