You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if everyone would want to have this, but looking at the code, it's just a try/catch to determine if the request failed or not. Perhaps a falsey response.ok should also count as a failure?
If you think it wouldn't be good to include by default, perhaps in the readme it'd be good to mention that a user can check for it in their api call like this:
Thank you for the library. It is very handy.
Not sure if everyone would want to have this, but looking at the code, it's just a
try
/catch
to determine if the request failed or not. Perhaps a falseyresponse.ok
should also count as a failure?If you think it wouldn't be good to include by default, perhaps in the readme it'd be good to mention that a user can check for it in their api call like this:
The text was updated successfully, but these errors were encountered: