1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-29 23:17:32 +02:00

Set ErrorHandler

This commit is contained in:
Stefan Haller 2024-04-11 21:57:03 +02:00
parent 9f8ae76189
commit 325800a72e

View File

@ -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() {