Fix typo in ERROR-HANDLING.md:required -> require (#898)
This commit is contained in:
parent
8fed3137f8
commit
ca50c22e34
|
@ -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`.
|
- 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
|
```js
|
||||||
const fetch = required('node-fetch');
|
const fetch = require('node-fetch');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue