Skip to content

Commit

Permalink
Use $stderr instead of warn
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Mar 8, 2024
1 parent 529f22e commit d158de2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ Sorbet/StrictSigil:
Exclude:
- "**/*.rake"
- "test/**/*.rb"

Style/StderrPuts:
Enabled: true
4 changes: 2 additions & 2 deletions lib/ruby_lsp/ruby_lsp_rails/runner_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def create_client
if File.exist?("bin/rails")
new
else
warn(<<~MSG)
$stderr.puts(<<~MSG)
Ruby LSP Rails failed to locate bin/rails in the current directory: #{Dir.pwd}"
MSG
warn("Server dependent features will not be available")
$stderr.puts("Server dependent features will not be available")
NullClient.new
end
rescue Errno::ENOENT, StandardError => e # rubocop:disable Lint/ShadowedException
Expand Down

0 comments on commit d158de2

Please sign in to comment.