From 2d589778e1146db1e3df5c789196389fa2eac0c9 Mon Sep 17 00:00:00 2001 From: ph0llux Date: Sun, 7 Jan 2024 22:42:14 +0100 Subject: [PATCH] improved error handling --- src/lib/object/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/object/mod.rs b/src/lib/object/mod.rs index f730750..3b3a4cc 100644 --- a/src/lib/object/mod.rs +++ b/src/lib/object/mod.rs @@ -507,7 +507,7 @@ pub(crate) fn chunking( match &*encoding_thread_pool_manager.compression_thread.get_result() { CompressedData::Compressed(compressed_data) => (compressed_data.clone(), true), CompressedData::Raw => (encoding_thread_pool_manager.data.read().unwrap().clone(), false), - CompressedData::Err(_) => return Err(ZffError::new(ZffErrorKind::Custom, "Compression error")), + CompressedData::Err(e) => return Err(ZffError::new(ZffErrorKind::Custom, e.details.clone())), } }, };