Skip to content

Commit

Permalink
Improve RuboCop internal error message
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Dec 19, 2024
1 parent 53cbea6 commit 676feb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_lsp/requests/support/rubocop_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class InternalRuboCopError < StandardError

MESSAGE = <<~EOS
An internal error occurred %s.
Updating to a newer version of RuboCop may solve this.
For more details, run RuboCop on the command line.
Updating to a newer version of RuboCop (and its extensions) may solve this.
For more details, run `bundle exec rubocop` on the command line.
EOS

sig { params(rubocop_error: T.any(RuboCop::ErrorWithAnalyzedFileLocation, StandardError)).void }
Expand Down

0 comments on commit 676feb6

Please sign in to comment.