From d102f8b422a4148fc433e442dea2e596ea25afbf Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 17:02:37 +0000 Subject: [PATCH] use fmt pkg for Errorf call in create.go Signed-off-by: James Sheppard --- pkg/chartutil/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index ee7e0067b..4585a25c8 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -577,12 +577,12 @@ func Create(name, dir string) (string, error) { if fi, err := os.Stat(path); err != nil { return path, err } else if !fi.IsDir() { - return path, errors.Errorf("no such directory %s", path) + return path, fmt.Errorf("no such directory %s", path) } cdir := filepath.Join(path, name) if fi, err := os.Stat(cdir); err == nil && !fi.IsDir() { - return cdir, errors.Errorf("file %s already exists and is not a directory", cdir) + return cdir, fmt.Errorf("file %s already exists and is not a directory", cdir) } files := []struct {