aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-07-28 15:38:01 -0500
committerJack Nagel2013-07-28 15:38:46 -0500
commit366cb87aecf41fcc590e5c51955d96da68ca33c8 (patch)
treebf0610f760894402b5fe4b430bb529dde99e6f4f /Library
parentbac6533d5cc5f5fa05d7bdfdbdeaa29a55488bc8 (diff)
downloadbrew-366cb87aecf41fcc590e5c51955d96da68ca33c8.tar.bz2
search: silence JSON decode errors
Closes Homebrew/homebrew#21506. Closes Homebrew/homebrew#21508.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index eec9f1474..5aab4dcbb 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -83,7 +83,7 @@ module Homebrew extend self
end
end
results
- rescue GitHub::Error
+ rescue GitHub::Error, Utils::JSON::Error
[]
end