We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e9361 commit da99da4Copy full SHA for da99da4
lib/filewatch/read_mode/handlers/read_zip_file.rb
@@ -79,12 +79,9 @@ def corrupted?(watched_file)
79
end
80
return false
81
rescue ZipException => e
82
- if e.message == 'invalid bit length repeat'
83
- duration = Time.now - start
84
- logger.warn("#{watched_file.path} is corrupted, #{duration} secs")
85
- return true
86
- end
87
- raise ZipException.new(e)
+ duration = Time.now - start
+ logger.warn("#{watched_file.path} is corrupted, #{duration} secs, message: #{e.message}")
+ return true
88
ensure
89
close_and_ignore_ioexception(gzip_stream) unless gzip_stream.nil?
90
close_and_ignore_ioexception(file_stream) unless file_stream.nil?
0 commit comments