1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-09 11:08:19 +00: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

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