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:
parent
b7c059886c
commit
6667e96dad
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue