From 3e31cc17f06bd99cae776886adc9f6e46e5b9826 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Fri, 16 Dec 2011 17:40:56 +0100 Subject: [PATCH] fix error reporting when index == 0 --- lib/less/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/index.js b/lib/less/index.js index 9151e1bd..4b5d46d7 100644 --- a/lib/less/index.js +++ b/lib/less/index.js @@ -43,7 +43,7 @@ var less = { if (options.silent) { return } - if (!ctx.index) { + if (!ctx.hasOwnProperty('index')) { return sys.error(ctx.stack || ctx.message); }