Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2951:65b20d922e10 | 2952:4ceb9bf7b00c |
---|---|
295 tag != DICOM_TAG_SERIES_TIME && | 295 tag != DICOM_TAG_SERIES_TIME && |
296 tag != DICOM_TAG_STUDY_DATE && | 296 tag != DICOM_TAG_STUDY_DATE && |
297 tag != DICOM_TAG_STUDY_TIME && | 297 tag != DICOM_TAG_STUDY_TIME && |
298 dicom.HasTag(tag)) | 298 dicom.HasTag(tag)) |
299 { | 299 { |
300 LOG(ERROR) << EnumerationToString(ErrorCode_CreateDicomOverrideTag) << ": " << name; | 300 throw OrthancException(ErrorCode_CreateDicomOverrideTag, name); |
301 throw OrthancException(ErrorCode_CreateDicomOverrideTag); | |
302 } | 301 } |
303 | 302 |
304 if (tag == DICOM_TAG_PIXEL_DATA) | 303 if (tag == DICOM_TAG_PIXEL_DATA) |
305 { | 304 { |
306 LOG(ERROR) << EnumerationToString(ErrorCode_CreateDicomUseContent); | |
307 throw OrthancException(ErrorCode_CreateDicomUseContent); | 305 throw OrthancException(ErrorCode_CreateDicomUseContent); |
308 } | 306 } |
309 else | 307 else |
310 { | 308 { |
311 dicom.Replace(tag, tags[name], decodeBinaryTags, DicomReplaceMode_InsertIfAbsent); | 309 dicom.Replace(tag, tags[name], decodeBinaryTags, DicomReplaceMode_InsertIfAbsent); |