Skip to content

Commit

Permalink
include image name in error message
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <[email protected]>
  • Loading branch information
dims committed Jan 16, 2024
1 parent 0736233 commit 725c92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 725c92e

Please sign in to comment.