From aaddad10eadf535f24df64005eb362554a117103 Mon Sep 17 00:00:00 2001 From: "Jorge I. Gasca" <42793610+jorge-gasca@users.noreply.github.com> Date: Tue, 7 Jan 2020 12:25:15 -0500 Subject: [PATCH] fix(cmd): Fixes logging on action conf init error (#6909) * fix(cmd): Fixes logging on action conf init error Errors relating to initializing the action config cause helm to exit silently, except when in debug mode. This now emits the useful error. Closes #6863 Signed-off-by: Jorge Gasca * Remove unnecessary formatting of err struct Signed-off-by: Jorge Gasca Signed-off-by: EItanya --- cmd/helm/helm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index fcc7315f5..a21b7a238 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -80,6 +80,9 @@ func main() { loadReleasesInMemory(actionConfig) } }) + if err := actionConfig.Init(settings.RESTClientGetter(), settings.Namespace(), os.Getenv("HELM_DRIVER"), debug); err != nil { + log.Fatal(err) + } if err := cmd.Execute(); err != nil { debug("%+v", err)