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

Commit

Permalink
Merge pull request #671 from cgwalters/add-errctx
Browse files Browse the repository at this point in the history
unencapsulate: Add errctx for decompression
  • Loading branch information
cgwalters authored Oct 21, 2024
2 parents 900990a + b94fdbe commit 993a583
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 993a583

Please sign in to comment.