chore: Quote value in error

This is for better visibility into the contents of tag.

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia 2022-04-14 23:11:10 +00:00
parent b6c3f91d45
commit aa3215d770
No known key found for this signature in database
GPG Key ID: C6490D872EF1DCA7

View File

@ -61,7 +61,7 @@ func (t exportTask) Run(ctx context.Context, pctx *plancontext.Context, s *solve
// Normalize tag // Normalize tag
tag, err := reference.ParseNormalizedNamed(opts.Tag) tag, err := reference.ParseNormalizedNamed(opts.Tag)
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to parse ref %s: %w", opts.Tag, err) return nil, fmt.Errorf("failed to parse ref %q: %w", opts.Tag, err)
} }
tag = reference.TagNameOnly(tag) tag = reference.TagNameOnly(tag)