aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-20 22:25:33 -0600
committerJack Nagel2014-11-20 22:28:11 -0600
commit6f6484f0d855c051a81b9754024ed34574a81a49 (patch)
treed4d370727bc09c49f3f0b3bca0f7b1e265ee9ee7 /Library
parentbc40e9fb957fd4fb0ed67ffe57d816b315412119 (diff)
downloadbrew-6f6484f0d855c051a81b9754024ed34574a81a49.tar.bz2
Friendlier error message for EOFError raised inside Net::HTTP
Closes Homebrew/homebrew#34312. Closes Homebrew/homebrew#34358.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index c8827e0d3..01492aa42 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -325,7 +325,7 @@ module GitHub extend self
end
rescue OpenURI::HTTPError => e
handle_api_error(e)
- rescue SocketError, OpenSSL::SSL::SSLError => e
+ rescue EOFError, SocketError, OpenSSL::SSL::SSLError => e
raise Error, "Failed to connect to: #{url}\n#{e.message}", e.backtrace
rescue Utils::JSON::Error => e
raise Error, "Failed to parse JSON response\n#{e.message}", e.backtrace