Skip to content

Commit 58205b3

Browse files
authored
Update article.md
"continues to closest" -> "continues to next closest". Consistent w/ usage in rest of explanation.
1 parent c8b717e commit 58205b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/11-async/04-promise-error-handling/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ As we already noticed, `.catch` at the end of the chain is similar to `try..catc
100100

101101
In a regular `try..catch` we can analyze the error and maybe rethrow it if it can't be handled. The same thing is possible for promises.
102102

103-
If we `throw` inside `.catch`, then the control goes to the next closest error handler. And if we handle the error and finish normally, then it continues to the closest successful `.then` handler.
103+
If we `throw` inside `.catch`, then the control goes to the next closest error handler. And if we handle the error and finish normally, then it continues to the next closest successful `.then` handler.
104104

105105
In the example below the `.catch` successfully handles the error:
106106

0 commit comments

Comments
 (0)