Merge pull request #2885 from Rnbsov/patch-2

Missed exclamation mark
This commit is contained in:
Ilya Kantor 2022-02-21 22:48:37 +03:00 committed by GitHub
commit 2cca9a9d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,7 +248,7 @@ Promise.any([
]).catch(error => {
console.log(error.constructor.name); // AggregateError
console.log(error.errors[0]); // Error: Ouch!
console.log(error.errors[1]); // Error: Error
console.log(error.errors[1]); // Error: Error!
});
```