From aa3215d7702cd2cb496fd39bb40d3dc155337009 Mon Sep 17 00:00:00 2001 From: Helder Correia <174525+helderco@users.noreply.github.com> Date: Thu, 14 Apr 2022 23:11:10 +0000 Subject: [PATCH] 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> --- plan/task/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan/task/export.go b/plan/task/export.go index 53f557e4..c5f79f2e 100644 --- a/plan/task/export.go +++ b/plan/task/export.go @@ -61,7 +61,7 @@ func (t exportTask) Run(ctx context.Context, pctx *plancontext.Context, s *solve // Normalize tag tag, err := reference.ParseNormalizedNamed(opts.Tag) 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)