Skip to content

Commit 5f702a2

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 1f0d217 + 59f42ab commit 5f702a2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/app.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)