diff --git a/cmd/helm/docs.go b/cmd/helm/docs.go index 523a96022..a7cc337d2 100644 --- a/cmd/helm/docs.go +++ b/cmd/helm/docs.go @@ -22,7 +22,6 @@ import ( "path/filepath" "strings" - "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/cobra/doc" "golang.org/x/text/cases" @@ -99,6 +98,6 @@ func (o *docsOptions) run(out io.Writer) error { case "bash": return o.topCmd.GenBashCompletionFile(filepath.Join(o.dest, "completions.bash")) default: - return errors.Errorf("unknown doc type %q. Try 'markdown' or 'man'", o.docTypeString) + return fmt.Errorf("unknown doc type %q. Try 'markdown' or 'man'", o.docTypeString) } }