persephone-tools / persephone-web-API

Web API for use with the Persephone library
GNU Affero General Public License v3.0
8 stars 2 forks source link

Error title #144

Closed aapeliv closed 5 years ago

aapeliv commented 5 years ago

What do you think about an error title to be added to the error spec?

This could be used in the frontend, there'll be a little error box, but it'd be nicer to have the title something else than "Uh-oh an error occured"

shuttle1987 commented 5 years ago

If it makes the frontend better I would be open to it. That said I think error codes are the better way to go here because you can create a lookup table with the error code number and the title text. This is easier for internationalization in the case that we do it. It also allows the frontend to change the display without needing upstream support provided the errors are the same.