File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ fn list_targets() -> impl Iterator<Item=cargo_metadata::Target> {
91
91
let mut metadata = if let Ok ( metadata) = cmd. exec ( ) {
92
92
metadata
93
93
} else {
94
- show_error ( format ! ( "Could not obtain Cargo metadata" ) ) ;
94
+ show_error ( format ! ( "Could not obtain Cargo metadata; likely an ill-formed manifest " ) ) ;
95
95
} ;
96
96
97
97
let current_dir = std:: env:: current_dir ( ) ;
@@ -113,7 +113,7 @@ fn list_targets() -> impl Iterator<Item=cargo_metadata::Target> {
113
113
package_manifest_directory == current_dir
114
114
}
115
115
} )
116
- . expect ( "could not find matching package" ) ;
116
+ . unwrap_or_else ( || show_error ( format ! ( "This seems to be a workspace, which is not supported by cargo-miri" ) ) ) ;
117
117
let package = metadata. packages . remove ( package_index) ;
118
118
119
119
// Finally we got the list of targets to build
You can’t perform that action at this time.
0 commit comments