diff options
author | Caolan McMahon <caolan@caolanmcmahon.com> | 2013-01-31 05:22:17 -0800 |
---|---|---|
committer | Caolan McMahon <caolan@caolanmcmahon.com> | 2013-01-31 05:22:17 -0800 |
commit | 6462a5ad82a9ffb4aa88e4bab21fe8ec90e10590 (patch) | |
tree | 1c68cff5bc91cd902febda752803688763ee7a27 /lib/async.js | |
parent | bbfed6066bcf8045f27aba26c878b0ff75ad7ce2 (diff) | |
parent | cd7a17b8195c5dbed8c165b22287ae9b2d0a5144 (diff) | |
download | async-6462a5ad82a9ffb4aa88e4bab21fe8ec90e10590.tar.gz |
Merge pull request #141 from alexgorbatchev/master
`waterfall` now passes all arguments to callback even if there was an error.
Diffstat (limited to 'lib/async.js')
-rw-r--r-- | lib/async.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async.js b/lib/async.js index 96bc67a..b922126 100644 --- a/lib/async.js +++ b/lib/async.js @@ -451,7 +451,7 @@ var wrapIterator = function (iterator) { return function (err) { if (err) { - callback(err); + callback.apply(null, arguments); callback = function () {}; } else { |