Merge pull request #859 from Senseinvader/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2019-03-20 16:01:48 +03:00 committed by GitHub
commit 4d35fe5133
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`"