Skip to content

Commit 11f5d1f

Browse files
committed
Merge pull request #994 from mchapman/patch-1
Add some information to error message
2 parents 625a2e1 + bdfc932 commit 11f5d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580
var dep;
581581
while (len--) {
582582
if (!(dep = tasks[requires[len]])) {
583-
throw new Error('Has inexistant dependency');
583+
throw new Error('Has inexistant dependency in ' + requires.join(', '));
584584
}
585585
if (_isArray(dep) && _indexOf(dep, k) >= 0) {
586586
throw new Error('Has cyclic dependencies');

0 commit comments

Comments
 (0)