From 725c92e7c7db7d26c020de1583996122ee37f929 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 16 Jan 2024 18:44:55 -0500 Subject: [PATCH] include image name in error message Signed-off-by: Davanum Srinivas --- client/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/image.go b/client/image.go index 10f30eacbfd1..9836a6faabe7 100644 --- a/client/image.go +++ b/client/image.go @@ -335,7 +335,7 @@ func (i *image) Unpack(ctx context.Context, snapshotterName string, opts ...Unpa for _, layer := range layers { unpacked, err = rootfs.ApplyLayerWithOpts(ctx, layer, chain, sn, a, config.SnapshotOpts, config.ApplyOpts) if err != nil { - return err + return fmt.Errorf("apply layer error for %q: %w", i.Name(), err) } if unpacked {