Mercurial > hg > orthanc
diff OrthancServer/ServerJobs/SplitStudyJob.cpp @ 2955:bbfd95a0c429
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:59:23 +0100 |
parents | 8b00e4cb4a6b |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/SplitStudyJob.cpp Mon Dec 03 14:35:34 2018 +0100 +++ b/OrthancServer/ServerJobs/SplitStudyJob.cpp Mon Dec 03 14:59:23 2018 +0100 @@ -43,10 +43,11 @@ { if (allowedTags_.find(tag) == allowedTags_.end()) { - LOG(ERROR) << "Cannot modify the following tag while splitting a study " - << "(not in the patient/study modules): " - << FromDcmtkBridge::GetTagName(tag, "") << " (" << tag.Format() << ")"; - throw OrthancException(ErrorCode_ParameterOutOfRange); + throw OrthancException(ErrorCode_ParameterOutOfRange, + "Cannot modify the following tag while splitting a study " + "(not in the patient/study modules): " + + FromDcmtkBridge::GetTagName(tag, "") + + " (" + tag.Format() + ")"); } } @@ -173,8 +174,8 @@ if (!context_.GetIndex().LookupResourceType(type, sourceStudy) || type != ResourceType_Study) { - LOG(ERROR) << "Cannot split unknown study: " << sourceStudy; - throw OrthancException(ErrorCode_UnknownResource); + throw OrthancException(ErrorCode_UnknownResource, + "Cannot split unknown study " + sourceStudy); } } @@ -209,8 +210,8 @@ else if (!context_.GetIndex().LookupParent(parent, series, ResourceType_Study) || parent != sourceStudy_) { - LOG(ERROR) << "This series does not belong to the study to be split: " << series; - throw OrthancException(ErrorCode_UnknownResource); + throw OrthancException(ErrorCode_UnknownResource, + "This series does not belong to the study to be split: " + series); } else {