File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ pub fn run_app_forever(client_reader: impl std::io::Read + Send + 'static,
100100 client_writer : impl std:: io:: Write + Send + ' static ,
101101 mut server_cmd : std:: process:: Command ,
102102 options : AppOptions ) -> Result < std:: process:: ExitStatus > {
103- info ! ( "Running server {:?}" , server_cmd) ;
103+ info ! ( "About to run the lsp server with command {:?}" , server_cmd) ;
104104 if let Some ( ref bytecode_options) = options. bytecode_options {
105105 info ! ( "Will convert server json to bytecode! bytecode options: {:?}" , bytecode_options) ;
106106 } else {
@@ -111,7 +111,13 @@ pub fn run_app_forever(client_reader: impl std::io::Read + Send + 'static,
111111 . stdin ( std:: process:: Stdio :: piped ( ) )
112112 . stdout ( std:: process:: Stdio :: piped ( ) )
113113 . stderr ( std:: process:: Stdio :: inherit ( ) )
114- . spawn ( ) ?;
114+ . spawn ( )
115+ . with_context ( || {
116+ format ! (
117+ "Failed to run the lsp server with command: {:?}" ,
118+ server_cmd
119+ )
120+ } ) ?;
115121
116122 let ( c2s_channel_pub, c2s_channel_sub) = mpsc:: channel :: < String > ( ) ;
117123 let c2s_channel_counter = Arc :: new ( AtomicI32 :: new ( 0 ) ) ;
You can’t perform that action at this time.
0 commit comments