diff options
| author | Jack Nagel | 2014-02-08 16:04:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-08 16:04:53 -0500 |
| commit | 7d4709d9d6bd297a04f215f99bb08d909e71b668 (patch) | |
| tree | fce81cb34d14cbfd84d7826d9bc73cfb1c33127a /Library/Homebrew/cmd | |
| parent | ee893fdd886552631ec2e763180b91402e1e858f (diff) | |
| download | brew-7d4709d9d6bd297a04f215f99bb08d909e71b668.tar.bz2 | |
Prevent repeated warnings when GitHub API rate limit is exceeded
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 4 |
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 |
