aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexey Alekhin2017-08-31 03:03:00 +0200
committerAlexey Alekhin2017-08-31 03:03:00 +0200
commit68dd0ac918639e6c1cbe7ba1800cda3646ba4e0b (patch)
tree386a3895f81bf137e7760448ff9df9703ae3a36f /Library
parent6ac0b9881de5a00a884ca5e59553583d1ada0fc5 (diff)
downloadbrew-68dd0ac918639e6c1cbe7ba1800cda3646ba4e0b.tar.bz2
Changed warning message as recommended by @reitermarkus
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/search.rb2
-rw-r--r--Library/Homebrew/test/cask/cli/search_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb
index 8fb8b91ec..d56d0c81f 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/search.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb
@@ -27,7 +27,7 @@ module Hbc
extension: "rb",
)
rescue GitHub::Error => error
- opoo "Online search failed: #{error}\n"
+ opoo "Error searching on GitHub: #{error}\n"
[]
end
matches.map do |match|
diff --git a/Library/Homebrew/test/cask/cli/search_spec.rb b/Library/Homebrew/test/cask/cli/search_spec.rb
index 06f0b4b32..85bb42c56 100644
--- a/Library/Homebrew/test/cask/cli/search_spec.rb
+++ b/Library/Homebrew/test/cask/cli/search_spec.rb
@@ -30,7 +30,7 @@ describe Hbc::CLI::Search, :cask do
local-caffeine
local-transmission
EOS
- .and output(/^Warning: Online search failed: reason/).to_stderr
+ .and output(/^Warning: Error searching on GitHub: reason/).to_stderr
end
it "shows that there are no Casks matching a search term that did not result in anything" do