JamesIves/fetch-api-data-action

Improve error handling

JamesIves opened this issue · 1 comments

There should be a check made to see if the API presented an error code or not. If it does it should throw an error. This will prevent error responses from being written to the json object.

response.ok is now checked in the request.