We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b703bd + 5a71eb8 commit 29f5e7eCopy full SHA for 29f5e7e
crates/ra_project_model/src/sysroot.rs
@@ -99,7 +99,8 @@ fn try_find_src_path(cargo_toml: &Path) -> Result<PathBuf> {
99
let rustc_output = Command::new("rustc")
100
.current_dir(cargo_toml.parent().unwrap())
101
.args(&["--print", "sysroot"])
102
- .output()?;
+ .output()
103
+ .map_err(|e| format!("rustc --print sysroot failed: {}", e))?;
104
if !rustc_output.status.success() {
105
Err("failed to locate sysroot")?;
106
}
0 commit comments