Skip to content

Commit

Permalink
Show why rubocop fails
Browse files Browse the repository at this point in the history
  • Loading branch information
baelter committed Oct 10, 2022
1 parent 3254dec commit 49b45e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solargraph/diagnostics/rubocop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def diagnose source, _api_map
rescue RuboCop::ValidationError, RuboCop::ConfigNotFoundError => e
raise DiagnosticsError, "Error in RuboCop configuration: #{e.message}"
rescue JSON::ParserError
raise DiagnosticsError, 'RuboCop returned invalid data'
raise DiagnosticsError, "RuboCop returned invalid data: #{e.message}"
end

private
Expand Down

0 comments on commit 49b45e6

Please sign in to comment.