Merge pull request #225 from ShockwaveNN/patch-1

Fix #218 Ouput Invalid Date/Time error to STDERR
This commit is contained in:
Alexander Simonov 2015-03-19 20:09:46 +02:00
commit daf3c28c5c
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ module Zip
def set_time(binary_dos_date, binary_dos_time)
@time = ::Zip::DOSTime.parse_binary_dos_format(binary_dos_date, binary_dos_time)
rescue ArgumentError
puts "Invalid date/time in zip entry" if ::Zip.warn_invalid_date
STDERR.puts "Invalid date/time in zip entry" if ::Zip.warn_invalid_date
end
def create_file(dest_path, continue_on_exists_proc = proc { Zip.continue_on_exists_proc })