Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2952:4ceb9bf7b00c
added details string in OrthancException
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 11:46:04 +0100 |
parents | 4b3929668358 |
children | bbfd95a0c429 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Mon Dec 03 10:02:25 2018 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Mon Dec 03 11:46:04 2018 +0100 @@ -297,13 +297,11 @@ tag != DICOM_TAG_STUDY_TIME && dicom.HasTag(tag)) { - LOG(ERROR) << EnumerationToString(ErrorCode_CreateDicomOverrideTag) << ": " << name; - throw OrthancException(ErrorCode_CreateDicomOverrideTag); + throw OrthancException(ErrorCode_CreateDicomOverrideTag, name); } if (tag == DICOM_TAG_PIXEL_DATA) { - LOG(ERROR) << EnumerationToString(ErrorCode_CreateDicomUseContent); throw OrthancException(ErrorCode_CreateDicomUseContent); } else