Skip to content

Commit

Permalink
improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ph0llux committed Jan 7, 2024
1 parent ee594da commit 2d58977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
}
},
};
Expand Down

0 comments on commit 2d58977

Please sign in to comment.