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:
bors 2023-08-09 12:10:21 +00:00
commit 4bed01c36e

View File

@ -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()..)