project_model: print full cargo command if it fails to run
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user