Set errwriter for urfave/cli v1 (#26616)
Resolves #26615
(cherry picked from commit 11711c51cb
)
This commit is contained in:
parent
4f8ae2881c
commit
07531cf953
1 changed files with 2 additions and 0 deletions
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…
Add table
Reference in a new issue