diff options
author | utilum <oz@utilum.com> | 2018-02-25 22:55:41 +0100 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-03-17 10:53:34 -0700 |
commit | 1e3c630d3f968c9b4c9b8996b940be4694d58544 (patch) | |
tree | 96a5add08473429feb61ba46441aa1dc88fcba58 /lib/bundler/mirror.rb | |
parent | 7f4c1a81b7b92e234fce0e3592d27c396d2451ac (diff) | |
download | bundler-1e3c630d3f968c9b4c9b8996b940be4694d58544.tar.gz |
Fix some rescue calls that do not specifiy error type.
Diffstat (limited to 'lib/bundler/mirror.rb')
-rw-r--r-- | lib/bundler/mirror.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/mirror.rb b/lib/bundler/mirror.rb index a6fa070eb8..b15190e7e5 100644 --- a/lib/bundler/mirror.rb +++ b/lib/bundler/mirror.rb @@ -152,7 +152,7 @@ module Bundler socket.connect_nonblock(address) rescue Errno::EINPROGRESS wait_for_writtable_socket(socket, address, timeout) - rescue # Connection failed somehow, again + rescue RuntimeError # Connection failed somehow, again false end end @@ -172,7 +172,7 @@ module Bundler socket.connect_nonblock(address) rescue Errno::EISCONN true - rescue # Connection failed + rescue StandardError # Connection failed false end end |