From 19cf6f9f5fffbf66ee6d786b4c8dfa10ff4194b6 Mon Sep 17 00:00:00 2001 From: Eduardo Pinho Date: Fri, 3 Jan 2025 12:03:51 +0000 Subject: [PATCH] Add error comment to C-Move SCP responses --- .../pt/ua/dicoogle/server/queryretrieve/CMoveServiceSCP.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dicoogle/src/main/java/pt/ua/dicoogle/server/queryretrieve/CMoveServiceSCP.java b/dicoogle/src/main/java/pt/ua/dicoogle/server/queryretrieve/CMoveServiceSCP.java index d0cfb3ce5..33ca962eb 100755 --- a/dicoogle/src/main/java/pt/ua/dicoogle/server/queryretrieve/CMoveServiceSCP.java +++ b/dicoogle/src/main/java/pt/ua/dicoogle/server/queryretrieve/CMoveServiceSCP.java @@ -235,12 +235,14 @@ protected DimseRSP doCMove(Association as, int pcid, DicomObject cmd, DicomObjec } else { rsp.putInt(Tag.Status, VR.US, 0xC000 | Status.ProcessingFailure); rsp.putInt(Tag.ErrorID, VR.US, ERROR_ID_FILE_TRANSMISSION); + rsp.putString(Tag.ErrorComment, VR.LO, "DICOM file transmission failed"); } } catch (Exception ex) { logger.error("Failed to send files to DICOM node {}", destination, ex); rsp.putInt(Tag.Status, VR.US, 0xC000 | Status.ProcessingFailure); rsp.putInt(Tag.ErrorID, VR.US, ERROR_ID_GENERAL_FAILURE); + rsp.putString(Tag.ErrorComment, VR.LO, ex.getMessage()); } }