Auto merge of #15421 - Veykril:workspace-loading, r=Veykril
internal: More error context when failing to invoke the rust toolchain
This commit is contained in:
commit
4bed01c36e
@ -167,7 +167,8 @@ fn load_inner(
|
||||
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 New Issue
Block a user