I am using async module in a project where I need to list errors of async.each function instead of calling the final callback.
async.each(userIds,function(userId, cb){
request.get('/api/v1/' + userId, function(err, response, body){
if(err){
}
//doing something with body
});
}, function(err){
if(err){
logger.info('Something went wrong');
}
});
how can I prevent calling async callback on error for above code? Thanks in advance.