# HG changeset patch # User Alain Mazy # Date 1560807346 -7200 # Node ID 4c45e018bd3de3cfa21d6efc6734673aaaee4435 # Parent decbede6e3ade92c4b8ed7f17714f4f15fb59d9c improved logging diff -r decbede6e3ad -r 4c45e018bd3d Core/DicomParsing/ParsedDicomFile.cpp --- a/Core/DicomParsing/ParsedDicomFile.cpp Wed Jun 12 18:04:53 2019 +0200 +++ b/Core/DicomParsing/ParsedDicomFile.cpp Mon Jun 17 23:35:46 2019 +0200 @@ -920,7 +920,7 @@ !GetTagValue(seriesUid, DICOM_TAG_SERIES_INSTANCE_UID) || !GetTagValue(instanceUid, DICOM_TAG_SOP_INSTANCE_UID)) { - throw OrthancException(ErrorCode_BadFileFormat); + throw OrthancException(ErrorCode_BadFileFormat, "missing PatientID, StudyInstanceUID, SeriesInstanceUID or SOPInstanceUID"); } return DicomInstanceHasher(patientId, studyUid, seriesUid, instanceUid); diff -r decbede6e3ad -r 4c45e018bd3d OrthancServer/ServerJobs/ResourceModificationJob.cpp --- a/OrthancServer/ServerJobs/ResourceModificationJob.cpp Wed Jun 12 18:04:53 2019 +0200 +++ b/OrthancServer/ServerJobs/ResourceModificationJob.cpp Mon Jun 17 23:35:46 2019 +0200 @@ -158,9 +158,9 @@ originalHasher.reset(new DicomInstanceHasher(original.GetHasher())); modified.reset(original.Clone(true)); } - catch (OrthancException&) + catch (OrthancException& e) { - LOG(WARNING) << "An instance was removed after the job was issued: " << instance; + LOG(WARNING) << "An error occurred while executing a Modification job on instance " << instance << ": " << e.GetDetails(); return false; }