Mercurial > hg > orthanc
diff Core/Compression/ZipWriter.cpp @ 2981:eff50153a7b3 db-changes
integration mainline->db-changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Dec 2018 15:58:08 +0100 |
parents | d924f9bb61cc |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Core/Compression/ZipWriter.cpp Thu Oct 18 10:48:11 2018 +0200 +++ b/Core/Compression/ZipWriter.cpp Thu Dec 06 15:58:08 2018 +0100 @@ -124,8 +124,8 @@ if (path_.size() == 0) { - LOG(ERROR) << "Please call SetOutputPath() before creating the file"; - throw OrthancException(ErrorCode_BadSequenceOfCalls); + throw OrthancException(ErrorCode_BadSequenceOfCalls, + "Please call SetOutputPath() before creating the file"); } hasFileInZip_ = false; @@ -168,8 +168,8 @@ { if (level >= 10) { - LOG(ERROR) << "ZIP compression level must be between 0 (no compression) and 9 (highest compression)"; - throw OrthancException(ErrorCode_ParameterOutOfRange); + throw OrthancException(ErrorCode_ParameterOutOfRange, + "ZIP compression level must be between 0 (no compression) and 9 (highest compression)"); } Close(); @@ -228,8 +228,7 @@ { if (!hasFileInZip_) { - LOG(ERROR) << "Call first OpenFile()"; - throw OrthancException(ErrorCode_BadSequenceOfCalls); + throw OrthancException(ErrorCode_BadSequenceOfCalls, "Call first OpenFile()"); } const size_t maxBytesInAStep = std::numeric_limits<int32_t>::max();