mirror of
https://github.com/python/cpython
synced 2024-10-14 10:18:12 +00:00
Improve zip64 limit error message (#95892)
This commit is contained in:
parent
c314198fad
commit
59665d0280
|
@ -1202,10 +1202,10 @@ def close(self):
|
|||
if not self._zip64:
|
||||
if self._file_size > ZIP64_LIMIT:
|
||||
raise RuntimeError(
|
||||
'File size unexpectedly exceeded ZIP64 limit')
|
||||
'File size too large, try using force_zip64')
|
||||
if self._compress_size > ZIP64_LIMIT:
|
||||
raise RuntimeError(
|
||||
'Compressed size unexpectedly exceeded ZIP64 limit')
|
||||
'Compressed size too large, try using force_zip64')
|
||||
# Seek backwards and write file header (which will now include
|
||||
# correct CRC and file sizes)
|
||||
|
||||
|
|
Loading…
Reference in a new issue