TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
980 stars 309 forks source link

Document error message conventions in contributing guide #5184

Open KrishnaIyer opened 2 years ago

KrishnaIyer commented 2 years ago

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

How do you propose to test this?

NA

Can you do this yourself and submit a Pull Request?

Can review.

johanstokking commented 2 years ago

From my understanding: