Skip to content

Commit e9212d1

Browse files
committed
more helpful error on workspaces
1 parent dc91c17 commit e9212d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/cargo-miri.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ fn list_targets() -> impl Iterator<Item = cargo_metadata::Target> {
144144
})
145145
.unwrap_or_else(|| {
146146
show_error(format!(
147-
"This seems to be a workspace, which is not supported by cargo-miri"
147+
"this seems to be a workspace, which is not supported by `cargo miri`.\n\
148+
Try to `cd` into the crate you want to test, and re-run `cargo miri` there."
148149
))
149150
});
150151
let package = metadata.packages.remove(package_index);

0 commit comments

Comments
 (0)