Fix a mistaken panic on bad parameters

This commit is contained in:
Aaron L 2016-09-08 22:37:54 -07:00
parent 97d6636da4
commit c65c1f6a2c

View file

@ -81,7 +81,7 @@ func main() {
if e, ok := err.(commandFailure); ok {
fmt.Printf("Error: %v\n\n", string(e))
rootCmd.Help()
} else if !cmdConfig.Debug {
} else if !viper.GetBool("debug") {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("Error: %+v\n", err)