Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 02:36:10 +01:00

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

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