Include more details in errnotManifestOrIndex

This error is returned when attempting to walk a descriptor that
*should* be an index or a manifest.
Without this the error is not very helpful sicne there's no way to tell
what triggered it.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2024-04-19 20:51:18 +00:00
parent b7c059886c
commit 6667e96dad

View file

@ -45,7 +45,7 @@ func (i *ImageService) walkImageManifests(ctx context.Context, img containerdima
return i.walkPresentChildren(ctx, desc, handleManifest)
}
return errNotManifestOrIndex
return errors.Wrapf(errNotManifestOrIndex, "error walking manifest for %s", img.Name)
}
type ImageManifest struct {