index.js
function failed(err, userId, channel, target) {
        if (err && typeof err === 'object') {
            err.userId  = userId
            err.channel = channel
            err.target  = target
        }

        errors.push(err)
        done()
    }
function failed(err, userId, channel, target) {
        if (err && typeof err === 'object') {
            err.userId  = userId
            err.channel = channel
            err.target  = target
        }

        errors.push(err)
        done()
    }
function failed ( err , userId , channel , target ) { if ( err && typeof err === 'object' ) { err . userId = userId err . channel = channel err . target = target } errors . push ( err ) done ( ) }
helper for decorating error objects with debug info when possible and storing them to pass back to the caller when we're done
helper for decorating error objects with debug info when possible and storing them to pass back to the caller when we re done