From 5e133a027ae82d280c15d7db8c9480ffcdf45b2e Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 6 Aug 2020 07:13:47 -0400 Subject: [PATCH] fix panic on top-level log --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 9171106f05d5..a19178e80bf2 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -38,7 +38,7 @@ func init() { func Execute() { if err := rootCmd.Execute(); err != nil { - log.Errorf(err.Error()) + fmt.Fprintln(os.Stderr, err.Error()) os.Exit(1) } }