summaryrefslogtreecommitdiffstats
path: root/pkg/gui/rebase_options_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-02-11 21:29:47 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-02-11 21:29:47 +1100
commit75ab8ec4d95b96fc9b8182154910609832265c3b (patch)
treeca28b1f60ee75df0fc878a35d2663f3cd914a688 /pkg/gui/rebase_options_panel.go
parent77faf85cfc749458aeafe45cb7df88e0a9d00500 (diff)
catch rebase errors and show in error panels
Diffstat (limited to 'pkg/gui/rebase_options_panel.go')
-rw-r--r--pkg/gui/rebase_options_panel.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/gui/rebase_options_panel.go b/pkg/gui/rebase_options_panel.go
index c189bb4c4..f60542c90 100644
--- a/pkg/gui/rebase_options_panel.go
+++ b/pkg/gui/rebase_options_panel.go
@@ -28,7 +28,11 @@ func (gui *Gui) handleCreateRebaseOptionsMenu(g *gocui.Gui, v *gocui.View) error
handleMenuPress := func(index int) error {
command := options[index].value
- return gui.genericRebaseCommand(command)
+ err := gui.genericRebaseCommand(command)
+ if err != nil {
+ return gui.createErrorPanel(gui.g, err.Error())
+ }
+ return nil
}
var title string