]> git.lizzy.rs Git - rust.git/commitdiff
more helpful error on workspaces
authorRalf Jung <post@ralfj.de>
Thu, 30 Apr 2020 08:19:34 +0000 (10:19 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 30 Apr 2020 08:19:34 +0000 (10:19 +0200)
src/bin/cargo-miri.rs

index 17d7ecf8c8708ff7a15f01fff77769974f14b6a9..1d93654e33e98c5cc2ad299c97bf3db5f4f050fe 100644 (file)
@@ -144,7 +144,8 @@ fn list_targets() -> impl Iterator<Item = cargo_metadata::Target> {
         })
         .unwrap_or_else(|| {
             show_error(format!(
-                "This seems to be a workspace, which is not supported by cargo-miri"
+                "this seems to be a workspace, which is not supported by `cargo miri`.\n\
+                 Try to `cd` into the crate you want to test, and re-run `cargo miri` there."
             ))
         });
     let package = metadata.packages.remove(package_index);