Include path instead of file in thrown error

This commit is contained in:
Kevin Sawicki
2013-03-22 09:50:11 -07:00
parent 49d1801742
commit 3d6dbf6d59

View File

@@ -127,7 +127,7 @@ window.loadStylesheet = (path) ->
content = fs.read(path)
if fs.extension(path) == '.less'
(new less.Parser).parse content, (e, tree) ->
throw new Error(e.message, file, e.line) if e
throw new Error(e.message, path, e.line) if e
content = tree.toCSS()
content