aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorJack Nagel2014-11-20 22:25:33 -0600
committerJack Nagel2014-11-20 22:28:11 -0600
commitc114c22d213c275f7d091fbce84a8d53e01c72af (patch)
tree6670747a9687e49dcecb8a786ae70625416597d4 /Library/Homebrew/utils.rb
parent8b92d354bb0b2323660a4abe2628a3650e550a36 (diff)
downloadhomebrew-c114c22d213c275f7d091fbce84a8d53e01c72af.tar.bz2
Friendlier error message for EOFError raised inside Net::HTTP
Closes #34312. Closes #34358.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-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