mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
More error context when failing to invoke the rust toolchain
This commit is contained in:
parent
cba39f8553
commit
18b24f60d0
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ impl ProjectWorkspace {
|
|||
cmd.envs(&config.extra_env);
|
||||
cmd.arg("--version").current_dir(current_dir);
|
||||
cmd
|
||||
})?;
|
||||
})
|
||||
.with_context(|| format!("Failed to query rust toolchain version at {current_dir}, is your toolchain setup correctly?"))?;
|
||||
anyhow::Ok(
|
||||
cargo_version
|
||||
.get(prefix.len()..)
|
||||
|
|
Loading…
Reference in a new issue