- From: Tejas Kumar <notifications@github.com>
- Date: Tue, 07 Nov 2017 12:59:02 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 7 November 2017 12:59:30 UTC
@annevk right – I see. To clarify, I meant: in the event the `Response` from a `fetch` call has a non-2xx status, would it make sense to display a warning in the browser's console along the lines of: ``` The Promise from the fetch() call resolved with status (not 2xx). To handle this error, check the `status` property of the Response object in the `then` block of your promise chain, as `catch` is only triggered on exceptions, not errors. ``` in order to make coding with `fetch` more approachable? -- 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/627#issuecomment-342474623
Received on Tuesday, 7 November 2017 12:59:30 UTC