Is There a Better Way to Stringify Error Codes?
This is more of an aesthetic question than a purely functional one, but I want to know if there’s any answer. See, I’m programming an error reporter for a project I’ve recently begun working on, and it’s mostly code-based for ease of function use. Think of errno
, with various values defined to note specific problems. It’s a prevalent system among error handlers. However, I don’t want to just give the user a code, because I know from the time before I started programming that a random array of numbers can often be overwhelming when trying to self-diagnose the problem.