Skip to content

Commit

Permalink
Check error message position
Browse files Browse the repository at this point in the history
To avoid detecting RuboCop's code as error
  • Loading branch information
pocke committed Jun 10, 2019
1 parent 1451d46 commit 9b09be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def exec_rubocop(*opts)
push_error(message: "Unexpected status: #{status.exitstatus}", command: cmd, stdout: out)
end
end
push_error(message: "An error occrred! see the log.", command: cmd, stdout: out)if out =~ /An error occurred while/
push_error(message: "An error occrred! see the log.", command: cmd, stdout: out)if out =~ /^An error occurred while/
end

def push_error(message:, command:, stdout:)
Expand Down

0 comments on commit 9b09be3

Please sign in to comment.