From bdfc9321e8d21d0dcef7132faa8087928c377b1b Mon Sep 17 00:00:00 2001 From: Mark Chapman Date: Fri, 1 Jan 2016 11:19:09 +0000 Subject: [PATCH] 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 --- lib/async.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/async.js b/lib/async.js index 3748ac070..2e4e3c671 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');