rearrange output to easily copy command suggestion
This commit is contained in:
parent
12d93c480f
commit
66c268b190
@ -53,8 +53,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if Homebrew.failed?
|
if Homebrew.failed?
|
||||||
$stderr.puts "The name may be wrong, or the tap hasn't been tapped."
|
$stderr.puts "The name may be wrong, or the tap hasn't been tapped. Instead try:"
|
||||||
$stderr.puts "Consider using `brew info --github #{args.named.join(" ")}` instead."
|
$stderr.puts " brew info --github #{args.named.join(" ")}"
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ describe "brew cat" do
|
|||||||
it "prints a suggestion to use brew info --github" , :integration_test do
|
it "prints a suggestion to use brew info --github" , :integration_test do
|
||||||
|
|
||||||
expect { brew "cat", "asdf", "bogus"}
|
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
|
.and be_a_failure
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user