Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Compression/ZipReader.cpp @ 4800:588fa6fb32ca
more detailed error message for unsupported zip files
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 18 Oct 2021 21:55:06 +0200 |
parents | b3957ddd88f1 |
children | 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4795:22d5b611dea7 | 4800:588fa6fb32ca |
---|---|
351 throw OrthancException(ErrorCode_BadFileFormat); | 351 throw OrthancException(ErrorCode_BadFileFormat); |
352 } | 352 } |
353 } | 353 } |
354 else | 354 else |
355 { | 355 { |
356 throw OrthancException(ErrorCode_BadFileFormat); | 356 throw OrthancException(ErrorCode_BadFileFormat, "Invalid file or unsupported compression method (e.g. Deflate64)"); |
357 } | 357 } |
358 } | 358 } |
359 | 359 |
360 pimpl_->done_ = (unzGoToNextFile(pimpl_->unzip_) != 0); | 360 pimpl_->done_ = (unzGoToNextFile(pimpl_->unzip_) != 0); |
361 | 361 |