From 6667e96dad672cd489d8ff258e4edc28317cbd09 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 19 Apr 2024 20:51:18 +0000 Subject: [PATCH] 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 --- daemon/containerd/image_manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/containerd/image_manifest.go b/daemon/containerd/image_manifest.go index f4fe77e444..482031e308 100644 --- a/daemon/containerd/image_manifest.go +++ b/daemon/containerd/image_manifest.go @@ -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 {