From f4e7aac17e3709f75d09da1ca27bd80ee4c66d0c Mon Sep 17 00:00:00 2001 From: Hanyu Cui Date: Sun, 20 Dec 2020 15:33:27 -0800 Subject: [PATCH] Print an error message when helm fails to access `~/.config` This is done by calling log.Fatal() instead of debug(). I think an error causing helm to exit can be considered fatal. This resolves #8606 Signed-off-by: Hanyu Cui --- cmd/helm/helm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 88a5ddcb9..ed6e27337 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -62,8 +62,7 @@ func main() { actionConfig := new(action.Configuration) cmd, err := newRootCmd(actionConfig, os.Stdout, os.Args[1:]) if err != nil { - debug("%+v", err) - os.Exit(1) + log.Fatal(err) } // run when each command's execute method is called