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 <jorge.ignacio.gasca@gmail.com>
pull/6909/head
Jorge Gasca 6 years ago
parent 43acbfe86d
commit 27034f6910

@ -68,8 +68,7 @@ func main() {
cmd := newRootCmd(actionConfig, os.Stdout, os.Args[1:])
if err := actionConfig.Init(settings.RESTClientGetter(), settings.Namespace(), os.Getenv("HELM_DRIVER"), debug); err != nil {
debug("%+v", err)
os.Exit(1)
log.Fatalf("%+v", err)
}
if err := cmd.Execute(); err != nil {

Loading…
Cancel
Save