comparison 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
comparison
equal deleted inserted replaced
2953:210d5afd8f2b 2954:d924f9bb61cc
269 uncompressed.clear(); 269 uncompressed.clear();
270 270
271 // The uncompressed size was not that properly guess, presumably 271 // The uncompressed size was not that properly guess, presumably
272 // because of a file size over 4GB. Should fallback to 272 // because of a file size over 4GB. Should fallback to
273 // stream-based decompression. 273 // stream-based decompression.
274 LOG(ERROR) << "The uncompressed size of a gzip-encoded buffer was not properly guessed"; 274 throw OrthancException(ErrorCode_NotImplemented,
275 throw OrthancException(ErrorCode_NotImplemented); 275 "The uncompressed size of a gzip-encoded buffer was not properly guessed");
276 } 276 }
277 } 277 }
278 } 278 }