Fixed: Parentheses do not match

This commit is contained in:
upupming 2018-07-20 23:10:09 +08:00
parent 101f8ba623
commit fda9eb26eb
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ Promise.all(urls.map(url => fetch(url)))
for(let response of responses) {
alert(`${response.url}: ${response.status}`);
}
));
});
```
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.