feat: if no matching manifest, then the log printing platform string (#2867)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2023-11-08 20:40:27 +08:00 committed by GitHub
parent 2339e9b7c0
commit da014f5043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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