mirror of
1
Fork 0

Set errwriter for urfave/cli v1 (#26616)

Resolves #26615

(cherry picked from commit 11711c51cb)
This commit is contained in:
John Olheiser 2023-08-20 23:02:40 -05:00 committed by Earl Warren
parent 4f8ae2881c
commit 07531cf953
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 2 additions and 0 deletions

View File

@ -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()
}