Skip to content

Commit 07e66c2

Browse files
committed
Make lintastic
1 parent 8bdf1e7 commit 07e66c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbooks/boxcutter_sonatype/recipes/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@
170170
:open_timeout => 5,
171171
:read_timeout => 20) { |h| h.request(req) }
172172
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH, Errno::ENETUNREACH,
173-
Errno::ETIMEDOUT, Net::OpenTimeout, Net::ReadTimeout, EOFError, SocketError => e
173+
Errno::ETIMEDOUT, Net::OpenTimeout, Net::ReadTimeout, EOFError, SocketError => conn_err
174174
last_error = e
175175
if i == attempts - 1
176-
raise "Nexus: unable to connect to #{uri} after #{attempts} attempts: #{e.class}: #{e.message}"
176+
raise "Nexus: unable to connect to #{uri} after #{attempts} attempts: #{conn_err.class}: #{conn_err.message}"
177177
end
178178
Chef::Log.info("Nexus: #{uri} not reachable yet (#{e.class}: #{e.message}); retrying in #{delay}s...")
179179
sleep delay

0 commit comments

Comments
 (0)