mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
project_model: print full cargo command if it fails to run
This commit is contained in:
parent
4566414789
commit
03eb9f3abb
1 changed files with 2 additions and 3 deletions
|
@ -286,9 +286,8 @@ impl CargoWorkspace {
|
||||||
// unclear whether cargo itself supports it.
|
// unclear whether cargo itself supports it.
|
||||||
progress("metadata".to_string());
|
progress("metadata".to_string());
|
||||||
|
|
||||||
let meta = meta.exec().with_context(|| {
|
let meta =
|
||||||
format!("Failed to run `cargo metadata --manifest-path {}`", cargo_toml.display(),)
|
meta.exec().with_context(|| format!("Failed to run `{:?}`", meta.cargo_command()))?;
|
||||||
})?;
|
|
||||||
|
|
||||||
Ok(meta)
|
Ok(meta)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue