From da014f5043fc245c7cb79a025c85fc415179337c Mon Sep 17 00:00:00 2001 From: Gaius Date: Wed, 8 Nov 2023 20:40:27 +0800 Subject: [PATCH] feat: if no matching manifest, then the log printing platform string (#2867) Signed-off-by: Gaius --- manager/job/preheat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/job/preheat.go b/manager/job/preheat.go index 63431e4b2..b283b2b24 100644 --- a/manager/job/preheat.go +++ b/manager/job/preheat.go @@ -209,7 +209,7 @@ func (p *preheat) getImageLayers(ctx context.Context, args types.PreheatArgs) ([ // no matching manifest for platform in the manifest list entries if len(manifests) == 0 { - return nil, fmt.Errorf("no matching manifest for platform %s", platform) + return nil, fmt.Errorf("no matching manifest for platform %s", platforms.Format(platform)) } // set authorization header