diff --git a/main.go b/main.go index 3d1d97cc95..1b98b745fd 100644 --- a/main.go +++ b/main.go @@ -199,6 +199,8 @@ argument - which can alternatively be run by running the subcommand web.` 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() }