Minor spelling correction
This commit is contained in:
parent
ccc0e9327f
commit
855c5443a8
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ loadJson('/article/promise-chaining/user.json')
|
|||
|
||||
## Error handling
|
||||
|
||||
Asynchronous actions may sometimes fail: in case of an error the corresponding promises becomes rejected. For instance, `fetch` fails if the remote server is not available. We can use `.catch` to handle errors (rejections).
|
||||
Asynchronous actions may sometimes fail: in case of an error the corresponding promise becomes rejected. For instance, `fetch` fails if the remote server is not available. We can use `.catch` to handle errors (rejections).
|
||||
|
||||
Promise chaining is great at that aspect. When a promise rejects, the control jumps to the closest rejection handler down the chain. That's very convenient in practice.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue