From 58f2237ce2557f52be57c3251509d983a86a99db Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 31 Aug 2023 08:56:16 -0500 Subject: [PATCH] fix(cli): Be more specific in what is needed --- src/cargo/util/command_prelude.rs | 2 +- tests/testsuite/list_availables.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/util/command_prelude.rs b/src/cargo/util/command_prelude.rs index aef8d0289afe..2ff8f1c9d054 100644 --- a/src/cargo/util/command_prelude.rs +++ b/src/cargo/util/command_prelude.rs @@ -452,7 +452,7 @@ pub trait ArgMatchesExt { "ustc --print target-list" }; bail!( - "\"--target\" takes an argument. + "\"--target\" takes a target architecture as an argument. Run `{cmd}` to see possible targets." ); diff --git a/tests/testsuite/list_availables.rs b/tests/testsuite/list_availables.rs index add90a7da8ac..fe635a19bd55 100644 --- a/tests/testsuite/list_availables.rs +++ b/tests/testsuite/list_availables.rs @@ -166,7 +166,7 @@ No tests available. .cargo(&format!("{} --target", command)) .with_stderr( "\ -error: \"--target\" takes an argument. +error: \"--target\" takes a target architecture as an argument. Run `[..]` to see possible targets. ",