aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/search.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 9941db650..bc079619d 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -113,7 +113,10 @@ module Homebrew extend self
end
end
results
- rescue GitHub::Error, Utils::JSON::Error
+ rescue OpenURI::HTTPError, GitHub::Error, Utils::JSON::Error
+ opoo <<-EOS.undent
+ Failed to search tap: #{user}/#{repo}. Please run `brew update`.
+ EOS
[]
end