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,
100
100
client_writer : impl std:: io:: Write + Send + ' static ,
101
101
mut server_cmd : std:: process:: Command ,
102
102
options : AppOptions ) -> Result < std:: process:: ExitStatus > {
103
- info ! ( "Running server {:?}" , server_cmd) ;
103
+ info ! ( "About to run the lsp server with command {:?}" , server_cmd) ;
104
104
if let Some ( ref bytecode_options) = options. bytecode_options {
105
105
info ! ( "Will convert server json to bytecode! bytecode options: {:?}" , bytecode_options) ;
106
106
} else {
@@ -111,7 +111,13 @@ pub fn run_app_forever(client_reader: impl std::io::Read + Send + 'static,
111
111
. stdin ( std:: process:: Stdio :: piped ( ) )
112
112
. stdout ( std:: process:: Stdio :: piped ( ) )
113
113
. 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
+ } ) ?;
115
121
116
122
let ( c2s_channel_pub, c2s_channel_sub) = mpsc:: channel :: < String > ( ) ;
117
123
let c2s_channel_counter = Arc :: new ( AtomicI32 :: new ( 0 ) ) ;
You can’t perform that action at this time.
0 commit comments