Set less property on caught error

This commit is contained in:
Kevin Sawicki
2015-03-24 08:42:41 -07:00
parent ddae58bd99
commit 27ffac5f1a
2 changed files with 3 additions and 2 deletions

View File

@@ -572,12 +572,12 @@ class Package
SyntaxError: #{error.message}
at #{location}
"""
else if error.type and error.filename and error.column? and error.line?
else if error.less and error.filename and error.column? and error.line?
# Less errors
location = "#{error.filename}:#{error.line}:#{error.column}"
detail = "#{error.message} in #{location}"
stack = """
Error: #{error.message}
LessError: #{error.message}
at #{location}
"""
else