DEV Community


Discussion on: Do you know why we check for response.ok while using fetch

jessegilbride profile image
Jesse Gilbride

It should be logged, yes, but probably not terribly useful to the app user. Maybe better to send the log to the app maintainer.

bias profile image
Tobias Nickel

it is useful, when you want to show the user some more specific error what went wrong. giving him a tip to resolve the issue himself, maybe create or update someother entity first.

I would think this is terribly useful.

Thread Thread
jessegilbride profile image
Jesse Gilbride • Edited

Right, useful to the programmer.