Update article.md

This commit is contained in:
Dmitry 2019-03-17 21:14:52 +01:00 committed by GitHub
parent 440f4086d4
commit ef81c0ead5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`"