mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-29 23:17:32 +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
|
||||
defer gui.g.Close()
|
||||
|
||||
g.ErrorHandler = gui.PopupHandler.Error
|
||||
|
||||
// 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.
|
||||
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user