diff --git a/pkg/cmd/template.go b/pkg/cmd/template.go index 556822f0d..e56fefc17 100644 --- a/pkg/cmd/template.go +++ b/pkg/cmd/template.go @@ -190,9 +190,8 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { if savedErr != nil && settings.Debug { // assume the manifest itself is too malformed to be rendered return savedErr - } else { - return fmt.Errorf("could not find template %s in chart", f) } + return fmt.Errorf("could not find template %s in chart", f) } } for _, m := range manifestsToRender {