lib/remi/extractor/sftp_file.rb in remi-0.2.41 vs lib/remi/extractor/sftp_file.rb in remi-0.2.42
- old
+ new
@@ -68,12 +68,12 @@
1.upto(N_RETRY).each do |itry|
begin
block.call
break
rescue RuntimeError => err
- raise err unless itry < ntry
+ raise err unless itry < N_RETRY
@logger.error "Download failed with error: #{err.message}"
- @logger.error "Retry attempt #{itry}/#{ntry-1}"
+ @logger.error "Retry attempt #{itry}/#{N_RETRY-1}"
sleep(1)
end
end
end
end