openaq / openaq-metadata-editor

MIT License
1 stars 1 forks source link

Catch errors #51

Closed olafveerman closed 4 years ago

olafveerman commented 5 years ago

The edit form does not catch errors from the API.

Current behavior

As an editor, when I save edits to a form and the PUT request results in an error, I see the location page with all the edits filled in. On refresh, my edits disappear.

Expected behavior

As an editor, when a PUT request results in an error, I expect to see an error message, saying it was not possible to save my data. Ideally, this message communicates the cause, with clear steps on how to remedy.