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 { if e, ok := err.(commandFailure); ok {
fmt.Printf("Error: %v\n\n", string(e)) fmt.Printf("Error: %v\n\n", string(e))
rootCmd.Help() rootCmd.Help()
} else if !cmdConfig.Debug { } else if !viper.GetBool("debug") {
fmt.Printf("Error: %v\n", err) fmt.Printf("Error: %v\n", err)
} else { } else {
fmt.Printf("Error: %+v\n", err) fmt.Printf("Error: %+v\n", err)