mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +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.envs(&config.extra_env);
|
||||||
cmd.arg("--version").current_dir(current_dir);
|
cmd.arg("--version").current_dir(current_dir);
|
||||||
cmd
|
cmd
|
||||||
})?;
|
})
|
||||||
|
.with_context(|| format!("Failed to query rust toolchain version at {current_dir}, is your toolchain setup correctly?"))?;
|
||||||
anyhow::Ok(
|
anyhow::Ok(
|
||||||
cargo_version
|
cargo_version
|
||||||
.get(prefix.len()..)
|
.get(prefix.len()..)
|
||||||
|
|
Loading…
Reference in a new issue