diff Core/Compression/GzipCompressor.cpp @ 2954:d924f9bb61cc

taking advantage of details in OrthancException
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:35:34 +0100
parents 878b59270859
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/Compression/GzipCompressor.cpp	Mon Dec 03 11:49:39 2018 +0100
+++ b/Core/Compression/GzipCompressor.cpp	Mon Dec 03 14:35:34 2018 +0100
@@ -271,8 +271,8 @@
       // The uncompressed size was not that properly guess, presumably
       // because of a file size over 4GB. Should fallback to
       // stream-based decompression.
-      LOG(ERROR) << "The uncompressed size of a gzip-encoded buffer was not properly guessed";
-      throw OrthancException(ErrorCode_NotImplemented);
+      throw OrthancException(ErrorCode_NotImplemented,
+                             "The uncompressed size of a gzip-encoded buffer was not properly guessed");
     }
   }
 }