News for hackers. Stuff that matters.
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.
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.

Re:Write Better Error Messages by mi_lk on Wednesday October 19, 2022 @12:43PM (#33264729)
> have a central database of all error types

do you have any example?

Re:Write Better Error Messages by zem on Wednesday October 19, 2022 @01:01PM (#33264942)
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).