Open KrishnaIyer opened 2 years ago
From my understanding:
could_not_...
and ..._failed
and "could not ..." "failed to ..." in error codes and messages respectivelyinvalid_{something}
and {something}_not_found
are permittedvalidation
is perfectly fine in the pkg/config
namespaceliteral
and that doesn't look good with full error messages
Summary
Document error message conventions in contributing guide
Why do we need this?
I keep getting review comments on what (not) to do in error messages but I don't find such conventions documented.
What is already there? What do you see now?
The front-end Design guide has a section on error messages; https://github.com/TheThingsNetwork/lorawan-stack/blob/v3.18/DESIGN.md#error-messages
What is missing? What do you want to see?
Add a similar one for the backend.
Environment
TTS v3.17.2
How do you propose to implement this?
Add an error messages section to our CONTRIBUTING.md. Some common things I've encountered
failed to
or_failed
How do you propose to test this?
NA
Can you do this yourself and submit a Pull Request?
Can review.