diff options
author | Jah Raphael <jahraphael@yahoo.com> | 2017-01-08 09:22:24 -0600 |
---|---|---|
committer | Jah Raphael <jahraphael@yahoo.com> | 2017-01-08 09:22:24 -0600 |
commit | 590a0f6214dcc23087c8968b6bc9be5ba61836a9 (patch) | |
tree | aea2d122813e2f7f48c024e0092a8c76a3a7cfb5 | |
parent | ce7c752ba252d3cb9e5869431ad8fed32e21afbb (diff) | |
download | async-590a0f6214dcc23087c8968b6bc9be5ba61836a9.tar.gz |
Print the name of the actual missing dependency in `async.auto`
-rw-r--r-- | lib/auto.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/auto.js b/lib/auto.js index 6186807..eca7d53 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -137,7 +137,8 @@ export default function (tasks, concurrency, callback) { arrayEach(dependencies, function (dependencyName) { if (!tasks[dependencyName]) { throw new Error('async.auto task `' + key + - '` has a non-existent dependency in ' + + '` has a non-existent dependency `' + + dependencyName + '` in ' + dependencies.join(', ')); } addListener(dependencyName, function () { |