diff Core/Compression/ZlibCompressor.cpp @ 1582:bd1889029cbb

encoding of exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:39:38 +0200
parents 33d34bc4ac15
children b1291df2f780
line wrap: on
line diff
--- a/Core/Compression/ZlibCompressor.cpp	Tue Aug 25 16:18:37 2015 +0200
+++ b/Core/Compression/ZlibCompressor.cpp	Tue Aug 25 17:39:38 2015 +0200
@@ -145,7 +145,7 @@
       switch (error)
       {
       case Z_DATA_ERROR:
-        throw OrthancException("Zlib: Corrupted or incomplete compressed buffer");
+        throw OrthancException(ErrorCode_CorruptedFile);
 
       case Z_MEM_ERROR:
         throw OrthancException(ErrorCode_NotEnoughMemory);