Ensure that errors are printed to stderr

This commit is contained in:
Mislav Marohnić 2019-10-31 15:46:38 +01:00
parent a6e61a3a8d
commit faa96be9ea

View file

@ -10,7 +10,7 @@ import (
func main() {
if err := command.RootCmd.Execute(); err != nil {
if err != command.SilentErr {
fmt.Println(err)
fmt.Fprintln(os.Stderr, err)
}
os.Exit(1)
}