Re:Write Better Error Messages
by legulere on Wednesday October 19, 2022 @11:11AM
(#33263386)
In RFC 7807 all errors get an unique URI. Message texts might change or be translated into a language you don’t understand.
[ Parent
| on HN ]
Re:Write Better Error Messages
by BerislavLopac on Wednesday October 19, 2022 @12:17PM
(#33264365)
To be precise, each error type gets a unique URI.
A good way to take advantage of that is to have a central database of all error types, but not many companies bother to do that.
> have a central database of all error types
do you have any example?
here's ours for pytype (a python type checker): https://google.github.io/pytype/errors.html
Re:Write Better Error Messages
by shadowgovt on Wednesday October 19, 2022 @03:20PM
(#33266694)
It turns out translating error messages is controversial.
Users, upon hitting an error, often go check Stack Overflow. If you localize your error messages, you Balkanize the collective wisdom on how to address the error (which will always be larger than your team's ability to troubleshoot errors and offer correctives in your documentation and FAQs).