Re: [whatwg/fetch] More informative error types (#526)

@mattto 

> ```fetch(...).catch(err => { err instanceof TypeError; })```

I feel it very strange because currently TypeError is the only error type fetch throws (except for AbortError, right, but it's still not very popular I guess...). The only usecase I can image except for testing is checking whether the error is thrown by fetch, together with statements that may throw errors other than TypeError, so that should be more complicated. Also, we need to care about `.name`, I think.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/526#issuecomment-381015901

Received on Friday, 13 April 2018 04:07:17 UTC