How can I handle errors from other than first promise rejection?
Example:
Promise.all[p1, p2, p3].then(...)
.catch((error) => { console.log(error) })
Order of rejection:
p1
p2
p3
Is it possible to get errors from p2
and p3
?
EDIT:
from comments below: is it possible to catch
error from specific Promise before passing it to .all
? E.g. I want to stay with Promise.all
funcionality but log all error cases also