浏览代码

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>
Brian Goff 1 年之前
父节点
当前提交
6667e96dad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/containerd/image_manifest.go

+ 1 - 1
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 {