Update article.md
This commit is contained in:
parent
440f4086d4
commit
ef81c0ead5
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ f().catch(alert); // TypeError: failed to fetch // (*)
|
||||||
*/!*
|
*/!*
|
||||||
```
|
```
|
||||||
|
|
||||||
If we forget to add `.catch` there, then we get an unhandled promise error (and can see it in the console). We can catch such errors using a global event handler as described in the chapter <info:promise-chaining>.
|
If we forget to add `.catch` there, then we get an unhandled promise error (and can see it in the console). We can catch such errors using a global event handler as described in the chapter <info:promise-error-handling>.
|
||||||
|
|
||||||
|
|
||||||
```smart header="`async/await` and `promise.then/catch`"
|
```smart header="`async/await` and `promise.then/catch`"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue