# HG changeset patch # User Sebastien Jodogne # Date 1403613628 -7200 # Node ID b4b46e3e60171df8bedb561369d3a6064e86de54 # Parent 703bef350e8971d38f562d80315039541e50bca1 more explicit error message diff -r 703bef350e89 -r b4b46e3e6017 OrthancServer/DicomModification.cpp --- 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 // For std::auto_ptr +#include 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); }