From b36c45213642abf1281cd3ef40e6ad23c05aa30f Mon Sep 17 00:00:00 2001 From: Damien Whitten Date: Fri, 30 Nov 2012 11:09:11 +1100 Subject: [PATCH] parser.imports passing errors parser.imports stored any errors in .error, but only returned an error to the callback on that last import in the queue. This commit makes it return the stored error (that.error). issue #463 --- lib/less/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/parser.js b/lib/less/parser.js index 6528b3924..d1fd6cf37 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -99,7 +99,7 @@ less.Parser = function Parser(env) { callback(e, root, imported); - if (that.queue.length === 0) { finish(e) } // Call `finish` if we're done importing + if (that.queue.length === 0) { finish(that.error) } // Call `finish` if we're done importing }, env); } };