Throwing responses is very counter-intuitive
futpib opened this issue · 0 comments
futpib commented
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.