Fix a mistaken panic on bad parameters
This commit is contained in:
parent
97d6636da4
commit
c65c1f6a2c
1 changed files with 1 additions and 1 deletions
2
main.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue