From b7f40bd2e88a14c6138368b8e6eea421b26817cd Mon Sep 17 00:00:00 2001 From: Richard Zhang Date: Wed, 23 Jan 2019 11:42:39 -0500 Subject: [PATCH] Fix typo loose to lose --- 6-async/04-promise-api/02-promise-errors-as-results-2/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-async/04-promise-api/02-promise-errors-as-results-2/task.md b/6-async/04-promise-api/02-promise-errors-as-results-2/task.md index ec28728b..50734a87 100644 --- a/6-async/04-promise-api/02-promise-errors-as-results-2/task.md +++ b/6-async/04-promise-api/02-promise-errors-as-results-2/task.md @@ -25,7 +25,7 @@ Promise.all(urls.map(url => fetch(url))) }); ``` -The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we loose results of all the other requests. So the code above is not fault-tolerant, just like the one in the previous task. +The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we lose results of all the other requests. So the code above is not fault-tolerant, just like the one in the previous task. Modify the code so that the array in the line `(*)` would include parsed JSON for successful requests and error for errored ones.