diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-04-11 21:57:03 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-04-18 10:10:30 +0200 |
commit | 325800a72e166d6c43ecb78247ae6e05ad9624ca (patch) | |
tree | dac68f1b7b3511ec6434acddeaa19402ea7e1f6e | |
parent | 9f8ae76189e61c0133ea6891ddcb30db09645b40 (diff) |
Set ErrorHandler
-rw-r--r-- | pkg/gui/gui.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 67ae7f2ab..742df6ffe 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -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() { |