Skip to content

Commit

Permalink
Fix issue RaoH#10
Browse files Browse the repository at this point in the history
  • Loading branch information
dyp2000 committed Sep 20, 2016
1 parent 343f72f commit 8611ae5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ module.exports =
error_type = "Error"
else
row_splittreedA = row.slice(0, row.indexOf(":"))
re = /[\w\/.]+:(\d+):(.+)/
re = /[\w\/.]+:(\d+):\ (.+)/
re_result = re.exec(row)
error_type = if re_result? and
re_result[2].trim().startsWith("Warning") then "Warning" else "Error"
linenr = parseInt(re_result[1], 10)
error_msg = re_result[2].trim()
error_stack.push
type: error_type
text: error_msg
filePath: filePath
range: helpers.rangeFromLineNumber(textEditor, linenr - 1)
if re_result != null
error_type = if re_result[2].trim().startsWith("Warning") then "Warning" else "Error"
linenr = parseInt(re_result[1], 10)
error_msg = re_result[2].trim()
error_stack.push
type: error_type
text: error_msg
filePath: filePath
range: helpers.rangeFromLineNumber(textEditor, linenr - 1)
process = new BufferedProcess
command: @executablePath
args: erlc_args
Expand Down

0 comments on commit 8611ae5

Please sign in to comment.