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.
Cargo.toml
1 parent 86bb8eb commit 70aa534Copy full SHA for 70aa534
src/tools/miri/cargo-miri/src/util.rs
@@ -213,7 +213,11 @@ fn cargo_extra_flags() -> Vec<String> {
213
214
pub fn get_cargo_metadata() -> Metadata {
215
// This will honor the `CARGO` env var the same way our `cargo()` does.
216
- MetadataCommand::new().no_deps().other_options(cargo_extra_flags()).exec().unwrap()
+ MetadataCommand::new()
217
+ .no_deps()
218
+ .other_options(cargo_extra_flags())
219
+ .exec()
220
+ .unwrap_or_else(|err| show_error!("{}", err))
221
}
222
223
/// Pulls all the crates in this workspace from the cargo metadata.
0 commit comments