- From: Yutaka Hirano <notifications@github.com>
- Date: Fri, 13 Apr 2018 04:06:49 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 13 April 2018 04:07:17 UTC
@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