When life gives you lemons, write better error messages
51–60 of 72 posts
Re: When life gives you lemons, write better error messages
#52Prev discussions, Oct 2022, 250+ comments: https://news.ycombinator.com/item?id=33261125
Re: When life gives you lemons, write better error messages
#53Error: File not found Which file?!?!?! Anyway, I disagree strongly on the technical jargon. Ok, if it's not really an error and the user can retry or similar sure. But if it's bad times, an exception or similar, don't care about the user. Instead include as much detail as you need. A non-technical user won't be able to do anything anyway, and a sanitized error message means support or a technical user has a much hard…
Re: When life gives you lemons, write better error messages
#54Re: When life gives you lemons, write better error messages
#55Hopefully this becomes a reversal in the trend of giving less and less context to the user. I'm not against the considerations of the article regarding the user and its state of mind, but please do add as much technical detail as possible! Even if an error message is a cryptic error code, that's better than a "Something went wrong" message. This is not better, or even friendlier, UX. An error code can be referenced,…
Re: When life gives you lemons, write better error messages
#56Error: File not found Which file?!?!?! Anyway, I disagree strongly on the technical jargon. Ok, if it's not really an error and the user can retry or similar sure. But if it's bad times, an exception or similar, don't care about the user. Instead include as much detail as you need. A non-technical user won't be able to do anything anyway, and a sanitized error message means support or a technical user has a much hard…
Re: When life gives you lemons, write better error messages
#57Error: File not found Which file?!?!?! Anyway, I disagree strongly on the technical jargon. Ok, if it's not really an error and the user can retry or similar sure. But if it's bad times, an exception or similar, don't care about the user. Instead include as much detail as you need. A non-technical user won't be able to do anything anyway, and a sanitized error message means support or a technical user has a much hard…
In the logs: detailed technical message with uuid.
Re: When life gives you lemons, write better error messages
#58Re: When life gives you lemons, write better error messages
#59Error: File not found Which file?!?!?! Anyway, I disagree strongly on the technical jargon. Ok, if it's not really an error and the user can retry or similar sure. But if it's bad times, an exception or similar, don't care about the user. Instead include as much detail as you need. A non-technical user won't be able to do anything anyway, and a sanitized error message means support or a technical user has a much hard…
IMO if you show an error to end users it needs to be actionable. Tell them what to do instead (e.g retry or wait, use other input file, etc etc). So don't say "InvalidArgumentException xyz", say "Expected a number but got 'hello'". This doesn't always work, but essentially hide tech details from users. If you must, include a bit of extra information (a request number or whatever) that helps you log dive.
And then dump whatever you want, with a copy button
Re: When life gives you lemons, write better error messages
#60Hopefully this becomes a reversal in the trend of giving less and less context to the user. I'm not against the considerations of the article regarding the user and its state of mind, but please do add as much technical detail as possible! Even if an error message is a cryptic error code, that's better than a "Something went wrong" message. This is not better, or even friendlier, UX. An error code can be referenced,…
When web UI developers die they go to what appears to be waiting area before
the gates of paradise. However no matter what they do to get in, anything
they try just pops up a message saying "Something went wrong". No other
information, just "Something went wrong" over and over again. Then they
wonder why there are flames and screaming all around them...