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:
parent
b6c3f91d45
commit
aa3215d770
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user