Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add option to wrap error in a verror before returning callback. #9

Open
yunong opened this Issue · 0 comments

1 participant

@yunong

If inlined functions are used, then potential errors will not return the line number of where that function was invoked:

vasync.pipeline({funcs: [
    function _foo(_, _cb) {
        bar(cb);     
    }
], arg:()}, function (err) {
...
}

function bar(cb) {
    return cb(new Error());
}

In this instance, I won't get the line number inside _foo where bar was actually invoked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.