Mercurial > hg > orthanc
diff OrthancServer/ServerToolbox.cpp @ 2955:bbfd95a0c429
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:59:23 +0100 |
parents | 65b20d922e10 |
children | 5da6d1063d8f 4e43e67f8ecf |
line wrap: on
line diff
--- a/OrthancServer/ServerToolbox.cpp Mon Dec 03 14:35:34 2018 +0100 +++ b/OrthancServer/ServerToolbox.cpp Mon Dec 03 14:59:23 2018 +0100 @@ -302,17 +302,19 @@ tmp != level || !FindOneChildInstance(instance, database, resource, level)) { - LOG(ERROR) << "Cannot find an instance for " << EnumerationToString(level) - << " with identifier " << *it; - throw OrthancException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError, + "Cannot find an instance for " + + std::string(EnumerationToString(level)) + + " with identifier " + *it); } // Get the DICOM file attached to some instances in the resource FileInfo attachment; if (!database.LookupAttachment(attachment, instance, FileContentType_Dicom)) { - LOG(ERROR) << "Cannot retrieve the DICOM file associated with instance " << database.GetPublicId(instance); - throw OrthancException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError, + "Cannot retrieve the DICOM file associated with instance " + + database.GetPublicId(instance)); } try