Skip to content

Commit 4f9e1db

Browse files
committed
Auto merge of #1378 - RalfJung:workspace-error, r=RalfJung
more helpful error on workspaces
2 parents dc91c17 + e9212d1 commit 4f9e1db

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)