diff --git a/main.go b/main.go index 8b48e8142e1..58f84f72481 100644 --- a/main.go +++ b/main.go @@ -150,6 +150,8 @@ func main() { log.GetManager().Close() os.Exit(code) } + app.ErrWriter = os.Stderr + _ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp log.GetManager().Close() }