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
This commit is contained in:
John Olheiser 2023-08-20 23:02:40 -05:00 committed by GitHub
parent bcb0f3a90f
commit 11711c51cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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