From 79229dba17a74d569c64b60a82199eb1a148e97c Mon Sep 17 00:00:00 2001 From: Andrey Popp <8mayday@gmail.com> Date: Mon, 4 Nov 2013 11:52:22 +0400 Subject: [PATCH] Report filename if available in case of errors --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 05f4b8c..326d060 100644 --- a/index.js +++ b/index.js @@ -55,6 +55,7 @@ module.exports = function(css, options){ function error(msg) { var err = new Error(msg + ' near line ' + lineno + ':' + column); + err.filename = options.source; err.line = lineno; err.column = column; err.source = css;