search: handle tap not found and suggest update.
Closes Homebrew/homebrew#25706. Closes Homebrew/homebrew#25682.
This commit is contained in:
parent
30503cebaa
commit
30e409adfd
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user