summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Chapman <mchapman@users.noreply.github.com>2016-01-01 11:19:09 +0000
committerMark Chapman <mchapman@users.noreply.github.com>2016-01-01 11:19:09 +0000
commitbdfc9321e8d21d0dcef7132faa8087928c377b1b (patch)
treed6fc96874e237d70c98a2799166bd1d19dfee9fc
parentb9cc28973144a9e1a84184d9d0bf48749899bfd9 (diff)
downloadasync-bdfc9321e8d21d0dcef7132faa8087928c377b1b.tar.gz
Add some information to error message
I had to put this change in to spot where my typo was, so thought I would make a PR
-rw-r--r--lib/async.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async.js b/lib/async.js
index 3748ac0..2e4e3c6 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -575,7 +575,7 @@
var dep;
while (len--) {
if (!(dep = tasks[requires[len]])) {
- throw new Error('Has inexistant dependency');
+ throw new Error('Has inexistant dependency in ' + requires.join(', '));
}
if (_isArray(dep) && _indexOf(dep, k) >= 0) {
throw new Error('Has cyclic dependencies');