Skip to content

Commit

Permalink
Detailed error message when error spawning language server.
Browse files Browse the repository at this point in the history
  • Loading branch information
Junfeng Li committed Sep 4, 2018
1 parent 2e3b4b7 commit f903cbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/languageclient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,10 @@ impl State {
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(stderr)
.spawn()?;
.spawn()
.with_context(|err| {
format!("Failed to start language server ({:?}): {}", command, err)
})?;

let child_id = Some(process.id());
let reader = Box::new(BufReader::new(
Expand Down

0 comments on commit f903cbd

Please sign in to comment.