Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

unencapsulate: Add errctx for decompression #671

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/src/container/unencapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use crate::container::store::LayerProgress;

use super::*;
use anyhow::Context as _;
use containers_image_proxy::{ImageProxy, OpenedImage};
use fn_error_context::context;
use futures_util::{Future, FutureExt, TryFutureExt as _};
Expand Down Expand Up @@ -225,7 +226,7 @@ pub(crate) fn decompress_bridge(
Box::new(flate2::bufread::GzDecoder::new(bufr))
};
// We don't care about the number of bytes copied
let _n: u64 = std::io::copy(&mut src, &mut tx)?;
let _n: u64 = std::io::copy(&mut src, &mut tx).context("Copying for decompression")?;
Ok(())
})
// Flatten the nested Result<Result<>>
Expand Down
Loading