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
Whenever people write catch (err) or .catch(err => ...) they expect err to be instanceof Error or at least to have a somewhat similar interface to Error 🦆.
I suggest next major version throws errors with a response property set to the response which led to error (just like github/fetch suggests) instead of thowing responses.
The text was updated successfully, but these errors were encountered:
Whenever people write
catch (err)
or.catch(err => ...)
they expecterr
to beinstanceof Error
or at least to have a somewhat similar interface toError
🦆.I suggest next major version throws errors with a
response
property set to the response which led to error (just like github/fetch suggests) instead of thowing responses.The text was updated successfully, but these errors were encountered: