From addd92fe93b977cdf2a31c991ad13ff1f5f8b4c5 Mon Sep 17 00:00:00 2001 From: Shubham Singh <116020663+1Shubham7@users.noreply.github.com> Date: Sun, 23 Jul 2023 22:32:12 +0530 Subject: [PATCH] to prevent ".," Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com> --- cmd/oras/internal/option/packer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/oras/internal/option/packer.go b/cmd/oras/internal/option/packer.go index d42c478c2..2bc6954f4 100644 --- a/cmd/oras/internal/option/packer.go +++ b/cmd/oras/internal/option/packer.go @@ -99,7 +99,7 @@ func (opts *Packer) LoadManifestAnnotations() (annotations map[string]map[string } if opts.AnnotationFilePath != "" { if err = decodeJSON(opts.AnnotationFilePath, &annotations); err != nil { - return nil, fmt.Errorf("error loading manifest annotations from file %s: %w, " + + return nil, fmt.Errorf("error loading manifest annotations from file %s: %w " + "refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations", opts.AnnotationFilePath, err) }