Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 2956:bfee0b9f3209
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 15:11:42 +0100 |
parents | dc18d5804746 |
children | 9c0b0a6d8b54 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Mon Dec 03 14:59:23 2018 +0100 +++ b/OrthancServer/ServerContext.cpp Mon Dec 03 15:11:42 2018 +0100 @@ -538,8 +538,8 @@ if (!AddAttachment(instancePublicId, FileContentType_DicomAsJson, result.c_str(), result.size())) { - LOG(WARNING) << "Cannot associate the DICOM-as-JSON summary to instance: " << instancePublicId; - throw OrthancException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError, + "Cannot associate the DICOM-as-JSON summary to instance: " + instancePublicId); } } } @@ -598,8 +598,9 @@ FileInfo attachment; if (!index_.LookupAttachment(attachment, instancePublicId, content)) { - LOG(WARNING) << "Unable to read attachment " << EnumerationToString(content) << " of instance " << instancePublicId; - throw OrthancException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError, + "Unable to read attachment " + EnumerationToString(content) + + " of instance " + instancePublicId); } if (uncompressIfNeeded)