Mercurial > hg > orthanc
diff OrthancServer/DicomModification.cpp @ 916:b4b46e3e6017
more explicit error message
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Jun 2014 14:40:28 +0200 |
parents | 84513f2ee1f3 |
children | 2f76b92addd4 |
line wrap: on
line diff
--- a/OrthancServer/DicomModification.cpp Tue Jun 24 12:00:41 2014 +0200 +++ b/OrthancServer/DicomModification.cpp Tue Jun 24 14:40:28 2014 +0200 @@ -37,6 +37,7 @@ #include "FromDcmtkBridge.h" #include <memory> // For std::auto_ptr +#include <glog/logging.h> namespace Orthanc { @@ -238,6 +239,7 @@ if (level_ == ResourceType_Patient && !IsReplaced(DICOM_TAG_PATIENT_ID)) { + LOG(ERROR) << "When modifying a patient, her PatientID is required to be modified"; throw OrthancException(ErrorCode_BadRequest); }