rearrange output to easily copy command suggestion

This commit is contained in:
Wes Higbee 2023-03-06 13:43:28 -06:00
parent 12d93c480f
commit 66c268b190
No known key found for this signature in database
GPG Key ID: 5183AB5EB611EDB6
2 changed files with 3 additions and 3 deletions

View File

@ -53,8 +53,8 @@ module Homebrew
end
if Homebrew.failed?
$stderr.puts "The name may be wrong, or the tap hasn't been tapped."
$stderr.puts "Consider using `brew info --github #{args.named.join(" ")}` instead."
$stderr.puts "The name may be wrong, or the tap hasn't been tapped. Instead try:"
$stderr.puts " brew info --github #{args.named.join(" ")}"
return
end

View File

@ -20,7 +20,7 @@ describe "brew cat" do
it "prints a suggestion to use brew info --github" , :integration_test do
expect { brew "cat", "asdf", "bogus"}
.to output(/Consider using `brew info --github asdf bogus` instead/).to_stderr
.to output(/brew info --github asdf bogus/).to_stderr
.and be_a_failure
end
end