This question already has an answer here:
- Bluebird Promise.all - multiple promises completed aggregating success and rejections 1 answer
I have this dummy code
var Promise = require('bluebird')
function rej1(){
return new Promise.reject(new Error('rej1'));
}
function rej2() {
return new Promise.reject(new Error('rej2'));
}
function rej3() {
return new Promise.reject(new Error('rej3'));
}
Promise.all([rej1(),rej2(),rej3()] ).then(function(){
console.log('haha')
},function(e){
console.error(e);
})
In the rejectionHandler i see only the first rejection. Is it possible to view all three rejections?