Skip to content

Commit

Permalink
Show why rubocop fails (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
baelter authored Dec 8, 2022
1 parent b8484cb commit b93bc72
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 @@ -32,7 +32,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 b93bc72

Please sign in to comment.