mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-10 23:57:43 +02:00
Set ErrorHandler
This commit is contained in:
parent
9f8ae76189
commit
325800a72e
@ -652,6 +652,8 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
|
|||||||
gui.g = g
|
gui.g = g
|
||||||
defer gui.g.Close()
|
defer gui.g.Close()
|
||||||
|
|
||||||
|
g.ErrorHandler = gui.PopupHandler.Error
|
||||||
|
|
||||||
// if the deadlock package wants to report a deadlock, we first need to
|
// if the deadlock package wants to report a deadlock, we first need to
|
||||||
// close the gui so that we can actually read what it prints.
|
// close the gui so that we can actually read what it prints.
|
||||||
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
|
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user