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