diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index c8827e0d38..01492aa423 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