Mercurial > hg > orthanc
diff Core/Compression/ZlibCompressor.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/ZlibCompressor.cpp Mon Dec 03 11:49:39 2018 +0100 +++ b/Core/Compression/ZlibCompressor.cpp Mon Dec 03 14:35:34 2018 +0100 @@ -117,8 +117,8 @@ if (!HasPrefixWithUncompressedSize()) { - LOG(ERROR) << "Cannot guess the uncompressed size of a zlib-encoded buffer"; - throw OrthancException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError, + "Cannot guess the uncompressed size of a zlib-encoded buffer"); } uint64_t uncompressedSize = ReadUncompressedSizePrefix(compressed, compressedSize);