OpenDataServices / standards-lab

Open Standards Lab. A web tool for users and creators of Open Standards.
https://standards-lab.readthedocs.io/
GNU Affero General Public License v3.0
2 stars 0 forks source link

All calls to JS fetch() should check response.ok #134

Open odscjames opened 3 years ago

odscjames commented 3 years ago

Not checking this means errors aren't caught properly

eg. If you try and load a file into an editor and for some reason that file 404's, what currently happens is the HTML of the 404 page appears in the editor.

Have to think about how to display such errors to user

odscjames commented 3 years ago

Can just do an alert() at the moment to show the error