summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-02 11:58:33 -0600
committerJeff Carr <[email protected]>2024-02-02 11:58:33 -0600
commit4800fe662002c1e0192614f60c179b6d46c43cae (patch)
treed71a69acce01e1ab89dd4b4e757ad4f2fc6f6963 /main.go
parentd4c2f8cb1b7514c1afa1d85092988b3ef25cef16 (diff)
debug gocui.MainLoop() panic error
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index e90794e..c056652 100644
--- a/main.go
+++ b/main.go
@@ -158,9 +158,13 @@ func gocuiMain() {
if err := defaultKeybindings(g); err != nil {
// normally panic here
+ log.Log(NOW, "defaultKeybindings(g) panic err =", err)
+ panic("gocuiTKdefaultkeybindings OOPS")
}
if err := g.MainLoop(); err != nil && !errors.Is(err, gocui.ErrQuit) {
+ log.Log(NOW, "g.MainLoop() panic err =", err)
// normally panic here
+ panic("gocuiTKmainloop OOPS")
}
}