diff options
author | Mark Chapman <mchapman@users.noreply.github.com> | 2016-01-01 11:19:09 +0000 |
---|---|---|
committer | Mark Chapman <mchapman@users.noreply.github.com> | 2016-01-01 11:19:09 +0000 |
commit | bdfc9321e8d21d0dcef7132faa8087928c377b1b (patch) | |
tree | d6fc96874e237d70c98a2799166bd1d19dfee9fc | |
parent | b9cc28973144a9e1a84184d9d0bf48749899bfd9 (diff) | |
download | async-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.js | 2 |
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'); |