Skip to content

Commit cae327a

Browse files
committed
Make lintastic
1 parent 07e66c2 commit cae327a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbooks/boxcutter_sonatype/recipes/default.rb

Lines changed: 3 additions & 3 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 => conn_err
174-
last_error = e
173+
Errno::ETIMEDOUT, Net::OpenTimeout, Net::ReadTimeout, EOFError, SocketError => err
174+
last_error = err
175175
if i == attempts - 1
176-
raise "Nexus: unable to connect to #{uri} after #{attempts} attempts: #{conn_err.class}: #{conn_err.message}"
176+
raise "Nexus: unable to connect to #{uri} after #{attempts} attempts: #{err.class}: #{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)