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 <hanyuc.gml@gmail.com>
pull/9155/head
Hanyu Cui 5 years ago
parent ba9cad9379
commit f4e7aac17e

@ -62,8 +62,7 @@ func main() {
actionConfig := new(action.Configuration) actionConfig := new(action.Configuration)
cmd, err := newRootCmd(actionConfig, os.Stdout, os.Args[1:]) cmd, err := newRootCmd(actionConfig, os.Stdout, os.Args[1:])
if err != nil { if err != nil {
debug("%+v", err) log.Fatal(err)
os.Exit(1)
} }
// run when each command's execute method is called // run when each command's execute method is called

Loading…
Cancel
Save