mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Include path instead of file in thrown error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user