diff --git a/docs/ERROR-HANDLING.md b/docs/ERROR-HANDLING.md index 10ef261..be29764 100644 --- a/docs/ERROR-HANDLING.md +++ b/docs/ERROR-HANDLING.md @@ -9,7 +9,7 @@ The basics: - A cancelled request is rejected with an [`AbortError`](https://github.com/node-fetch/node-fetch/blob/master/README.md#class-aborterror). You can check if the reason for rejection was that the request was aborted by checking the `Error`'s `name` is `AbortError`. ```js -const fetch = required('node-fetch'); +const fetch = require('node-fetch'); (async () => { try {