Skip to content

Commit aad3769

Browse files
authored
Merge pull request containerd#9649 from dims/include-image-name-in-error-message
include image name in error message
2 parents 380e78e + 725c92e commit aad3769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (i *image) Unpack(ctx context.Context, snapshotterName string, opts ...Unpa
335335
for _, layer := range layers {
336336
unpacked, err = rootfs.ApplyLayerWithOpts(ctx, layer, chain, sn, a, config.SnapshotOpts, config.ApplyOpts)
337337
if err != nil {
338-
return err
338+
return fmt.Errorf("apply layer error for %q: %w", i.Name(), err)
339339
}
340340

341341
if unpacked {

0 commit comments

Comments
 (0)