Skip to content

Commit

Permalink
Merge pull request containerd#9649 from dims/include-image-name-in-er…
Browse files Browse the repository at this point in the history
…ror-message

include image name in error message
  • Loading branch information
dims authored Jan 17, 2024
2 parents 380e78e + 725c92e commit aad3769
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 aad3769

Please sign in to comment.