From 4e9346a66e5d837baf2d8fbefb986e2d0127b997 Mon Sep 17 00:00:00 2001 From: Andy Waite <13400+andyw8@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:21:03 -0500 Subject: [PATCH] Improve diagnostics for situations where Rails fails to boot --- lib/ruby_lsp/ruby_lsp_rails/runner_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb index 272a88f3..c3f0949b 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb @@ -109,7 +109,7 @@ def initialize(outgoing_queue) end, Thread, ) - rescue Errno::EPIPE, IncompleteMessageError + rescue Errno::EPIPE, IncompleteMessageError, MessageError raise InitializationError, @stderr.read end