Update article.md

Change "occasional" to "accidental". I think that's what you mean, and the words are not synonymous in English.
This commit is contained in:
Peter Roche 2020-01-28 23:59:24 -07:00 committed by GitHub
parent bd6052f591
commit c8b717e936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ new Promise((resolve, reject) => {
}).catch(alert); // ReferenceError: blabla is not defined }).catch(alert); // ReferenceError: blabla is not defined
``` ```
The final `.catch` not only catches explicit rejections, but also occasional errors in the handlers above. The final `.catch` not only catches explicit rejections, but also accidental errors in the handlers above.
## Rethrowing ## Rethrowing