diff --git a/click.go b/click.go index a2b61c5..57a6179 100644 --- a/click.go +++ b/click.go @@ -239,7 +239,7 @@ func click(g *gocui.Gui, v *gocui.View) error { } if _, err := g.SetCurrentView(v.Name()); err != nil { - log.Log(NOW, "click() END err =", err) + log.Log(NOW, "click() END v.Name =", v.Name(), "err =", err) return err } 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") } }