mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-27 20:26:09 +01:00
Set errwriter for urfave/cli v1 (#26616)
Resolves #26615
(cherry picked from commit 11711c51cb
)
This commit is contained in:
parent
4f8ae2881c
commit
07531cf953
2
main.go
2
main.go
|
@ -199,6 +199,8 @@ argument - which can alternatively be run by running the subcommand web.`
|
||||||
log.GetManager().Close()
|
log.GetManager().Close()
|
||||||
os.Exit(code)
|
os.Exit(code)
|
||||||
}
|
}
|
||||||
|
app.ErrWriter = os.Stderr
|
||||||
|
|
||||||
_ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp
|
_ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp
|
||||||
log.GetManager().Close()
|
log.GetManager().Close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue