Skip to content

Commit

Permalink
fix(cmd/cmd.go): have printErr check errs for lib.Error and print cor…
Browse files Browse the repository at this point in the history
…rect message
  • Loading branch information
ramfox committed Aug 23, 2018
1 parent 014e30f commit 75a7e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Execute() {
root.SilenceErrors = true
// Execute the subcommand
if err := root.Execute(); err != nil {
printErr(os.Stdin, err)
printErr(os.Stdout, err)
os.Exit(1)
}
}
Expand Down

0 comments on commit 75a7e85

Please sign in to comment.