Mercurial > hg > orthanc
changeset 916:b4b46e3e6017
more explicit error message
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Jun 2014 14:40:28 +0200 |
parents | 703bef350e89 |
children | 401a8273fd71 |
files | OrthancServer/DicomModification.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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); }