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 <jorge.ignacio.gasca@gmail.com>

* Remove unnecessary formatting of err struct

Signed-off-by: Jorge Gasca <jorge.ignacio.gasca@gmail.com>
(cherry picked from commit ad07bb690d)
release-3.0
Jorge I. Gasca 5 years ago committed by Matt Farina
parent 6d92b59fff
commit 64e57d92b6
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -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.Fatal(err)
}
if err := cmd.Execute(); err != nil {

Loading…
Cancel
Save