diff options
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index e3ed198..b894fe2 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -197,6 +197,10 @@ void Handle::close() throw (GeneralException) { if (err == Z_ERRNO) { throw GeneralException(String(_("Error during close: ")) + strerror(errno)); } else { +#ifdef IGNOREZDATAONCLOSE + if (err == Z_DATA_ERROR) + return; +#endif throw GeneralException(String(_("Error in zlib during gzclose: ")) + gzerror(zfile, &err)); } } |