search: handle tap not found and suggest update.

Closes Homebrew/homebrew#25706.
Closes Homebrew/homebrew#25682.
This commit is contained in:
Mike McQuaid 2014-01-09 17:20:54 +00:00
parent 30503cebaa
commit 30e409adfd

View File

@ -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