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

There is now https://github.com/sindresorhus/is-network-error, a bandaid solution that matches on the returned error strings, which all implementations handle differently.

This is probably not easily fixable from a spec perspective because code in the wild relies on the existing `TypeError` class, so one can't just introduce a `NetworkError` class now.

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

Message ID: <whatwg/fetch/issues/526/1736160508@github.com>

Received on Tuesday, 26 September 2023 19:27:13 UTC