From 11711c51cb497477176ea68309d2d061820996da 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 --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 8b48e8142e11d..58f84f72481d9 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() }