We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101f8ba commit fda9eb2Copy full SHA for fda9eb2
6-async/04-promise-api/01-promise-errors-as-results/source.view/index.html
@@ -21,7 +21,7 @@
21
alert(responses[0].status); // 200
22
alert(responses[1].status); // 200
23
alert(responses[2]); // TypeError: failed to fetch (text may vary)
24
- ));
+ });
25
</script>
26
27
</body>
6-async/04-promise-api/01-promise-errors-as-results/task.md
@@ -17,7 +17,7 @@ Promise.all(urls.map(url => fetch(url)))
17
for(let response of responses) {
18
alert(`${response.url}: ${response.status}`);
19
}
20
```
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.
0 commit comments