Skip to content

Commit

Permalink
Add error comment to C-Move SCP responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Enet4 committed Jan 3, 2025
1 parent 39b2553 commit 19cf6f9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 19cf6f9

Please sign in to comment.