diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-15 21:43:31 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-15 21:43:31 +1000 |
commit | 7c33c0293082161aa0e5e79115e30289175a26fd (patch) | |
tree | 0c70c30dc6b3f033797019ecbd0ef21c394a9e19 /pkg/gui/confirmation_panel.go | |
parent | 905e6c16ba6e6fbfbd01338538f730b93504303e (diff) |
dont panic if unable to close confirmation prompt
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index 3bec18419..2dd721c81 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -79,7 +79,7 @@ func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, t // delete the existing confirmation panel if it exists if view, _ := g.View("confirmation"); view != nil { if err := gui.closeConfirmationPrompt(g); err != nil { - panic(err) + gui.Log.Error("Could not close confirmation prompt: ", err.Error()) } } x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, prompt) |