From c65c1f6a2cd3e034ec8a2199afe0354d7411ca14 Mon Sep 17 00:00:00 2001 From: Aaron L Date: Thu, 8 Sep 2016 22:37:54 -0700 Subject: [PATCH] Fix a mistaken panic on bad parameters --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2b79923..db7b29d 100644 --- a/main.go +++ b/main.go @@ -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)