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)