diff options
author | dmjohnsson23 <dmjohn235@gmail.com> | 2022-11-30 11:14:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 11:14:41 (GMT) |
commit | 59665d0280c2299ea87e9af45cedc90656cb6f55 (patch) | |
tree | f18027726285689f9b4ab9e9ced14ad8fa479e73 /Lib/zipfile | |
parent | c314198fadd3dc79ee15f375a409163d8fb33586 (diff) | |
download | cpython-59665d0280c2299ea87e9af45cedc90656cb6f55.zip cpython-59665d0280c2299ea87e9af45cedc90656cb6f55.tar.gz cpython-59665d0280c2299ea87e9af45cedc90656cb6f55.tar.bz2 |
Improve zip64 limit error message (#95892)
Diffstat (limited to 'Lib/zipfile')
-rw-r--r-- | Lib/zipfile/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/zipfile/__init__.py b/Lib/zipfile/__init__.py index 8f83426..e1833dd 100644 --- a/Lib/zipfile/__init__.py +++ b/Lib/zipfile/__init__.py @@ -1202,10 +1202,10 @@ class _ZipWriteFile(io.BufferedIOBase): 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) |