mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +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.
|
||||
progress("metadata".to_string());
|
||||
|
||||
let meta = meta.exec().with_context(|| {
|
||||
format!("Failed to run `cargo metadata --manifest-path {}`", cargo_toml.display(),)
|
||||
})?;
|
||||
let meta =
|
||||
meta.exec().with_context(|| format!("Failed to run `{:?}`", meta.cargo_command()))?;
|
||||
|
||||
Ok(meta)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue