From eb6fc0934fc2e9e6af50ea662ee5f36b0a8ec354 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 17 Jan 2025 11:46:50 +0100 Subject: [PATCH] fmt --- libs/template/template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/template/template.go b/libs/template/template.go index e3a3eab63c..5d3228e7c9 100644 --- a/libs/template/template.go +++ b/libs/template/template.go @@ -2,6 +2,7 @@ package template import ( "context" + "errors" "fmt" "slices" "strings" @@ -104,7 +105,7 @@ func options() []cmdio.Tuple { func SelectTemplate(ctx context.Context) (TemplateName, error) { if !cmdio.IsPromptSupported(ctx) { - return "", fmt.Errorf("prompting is not supported. Please specify the path, name or URL of the template to use") + return "", errors.New("prompting is not supported. Please specify the path, name or URL of the template to use") } description, err := cmdio.SelectOrdered(ctx, options(), "Template to use") if err != nil {