fix panic on top-level log (#125)

This commit is contained in:
Alex Goodman 2020-08-06 08:29:52 -04:00 committed by GitHub
parent f855a38a01
commit dc8dfc8457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}