diff options
| author | Jack Nagel | 2014-11-20 22:25:33 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-11-20 22:28:11 -0600 |
| commit | c114c22d213c275f7d091fbce84a8d53e01c72af (patch) | |
| tree | 6670747a9687e49dcecb8a786ae70625416597d4 /Library/Homebrew/utils.rb | |
| parent | 8b92d354bb0b2323660a4abe2628a3650e550a36 (diff) | |
| download | homebrew-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.rb | 2 |
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 |
