From 07531cf9537d169bf8775d4099f853595219678a Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Sun, 20 Aug 2023 23:02:40 -0500 Subject: [PATCH] Set errwriter for urfave/cli v1 (#26616) Resolves #26615 (cherry picked from commit 11711c51cb497477176ea68309d2d061820996da) --- main.go | 2 ++ 1 file changed, 2 insertions(+) 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() }