diff --git a/storescu/src/main.rs b/storescu/src/main.rs index ca29e91df..b80759043 100644 --- a/storescu/src/main.rs +++ b/storescu/src/main.rs @@ -81,7 +81,7 @@ enum Error { }, /// Could not construct DICOM command - CreateCommand { source: dicom_object::WriteError }, + CreateCommand { source: Box }, /// Unsupported file transfer syntax {uid} UnsupportedFileTransferSyntax { uid: std::borrow::Cow<'static, str> }, @@ -262,6 +262,7 @@ fn run() -> Result<(), Error> { &mut cmd_data, &dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN.erased(), ) + .map_err(Box::from) .context(CreateCommandSnafu)?; let mut object_data = Vec::with_capacity(2048);