Merge pull request #2202 from helderco/quote-error

chore: Quote value in error
This commit is contained in:
Helder Correia 2022-04-15 22:56:54 +00:00 committed by GitHub
commit 1598ed9841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)