aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/search.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/search.rb')
-rw-r--r--Library/Homebrew/cmd/search.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 2d3a28f36..71e1d1720 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -112,7 +112,9 @@ module Homebrew extend self
end
end
results
- rescue GitHub::Error
+ rescue GitHub::RateLimitExceededError => e
+ []
+ rescue GitHub::Error => e
opoo "Failed to search tap: #{user}/#{repo}. Please run `brew update`"
[]
end