diff 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
line wrap: on
line diff
--- a/OrthancFramework/Sources/Compression/ZipReader.cpp	Thu Sep 30 17:52:07 2021 +0200
+++ b/OrthancFramework/Sources/Compression/ZipReader.cpp	Mon Oct 18 21:55:06 2021 +0200
@@ -353,7 +353,7 @@
         }
         else
         {
-          throw OrthancException(ErrorCode_BadFileFormat);
+          throw OrthancException(ErrorCode_BadFileFormat, "Invalid file or unsupported compression method (e.g. Deflate64)");
         }
       }