Promise.all "catch" throw new Error code example
Example: await all pronmises
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});