Merge pull request #9649 from dims/include-image-name-in-error-message

include image name in error message
This commit is contained in:
Davanum Srinivas
2024-01-17 12:19:40 +00:00
committed by GitHub

View File

@@ -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 {