aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-01-09 17:20:54 +0000
committerMike McQuaid2014-01-09 17:20:54 +0000
commit7c95914a4104292c05688bb705b1fd474bc15b4f (patch)
tree63b817c06e835f30aeaef920f0812eba0849b8dd /Library
parent40441020799662435923866829d452f6f450226b (diff)
downloadhomebrew-7c95914a4104292c05688bb705b1fd474bc15b4f.tar.bz2
search: handle tap not found and suggest update.
Closes #25706. Closes #25682.
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