# HG changeset patch # User am@osimis.io # Date 1543412169 -3600 # Node ID 4b3929668358fa93a62a3382f2c74798c6df86fa # Parent aeeb40a35ce19ab142db6f9054bc4e5cb7a57da1 create-dicom: more logs in case of error diff -r aeeb40a35ce1 -r 4b3929668358 OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Wed Nov 28 14:34:56 2018 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Wed Nov 28 14:36:09 2018 +0100 @@ -271,6 +271,7 @@ { if (tags.type() != Json::objectValue) { + LOG(ERROR) << "Tags field is not an array"; throw OrthancException(ErrorCode_BadRequest); } @@ -296,11 +297,13 @@ tag != DICOM_TAG_STUDY_TIME && dicom.HasTag(tag)) { + LOG(ERROR) << EnumerationToString(ErrorCode_CreateDicomOverrideTag) << ": " << name; throw OrthancException(ErrorCode_CreateDicomOverrideTag); } if (tag == DICOM_TAG_PIXEL_DATA) { + LOG(ERROR) << EnumerationToString(ErrorCode_CreateDicomUseContent); throw OrthancException(ErrorCode_CreateDicomUseContent); } else