diff options
author | Glenn Vriesman <glenn.vriesman@gmail.com> | 2018-11-29 18:02:56 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-11 09:39:54 +1100 |
commit | a1ee11e54e1f08b0df1712a69a65a6604ae46711 (patch) | |
tree | 6962cacd5573fdb018421278aa3876205823a0e0 /pkg/gui/branches_panel.go | |
parent | 7b850c56c4bbcddb3227055ed807ae0c5f6bd139 (diff) |
Added error check to satisfy ci
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 631c80608..5e345091d 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -107,7 +107,9 @@ func (gui *Gui) handleRebase(g *gocui.Gui, v *gocui.View) error { return gui.createErrorPanel(g, gui.Tr.SLocalize("CantRebaseOntoSelf")) } if err := gui.GitCommand.RebaseBranch(selectedBranch); err != nil { - gui.createErrorPanel(g, "Failed to rebase") + if err := gui.createErrorPanel(g, "Failed to rebase"); err != nil { + gui.Log.Println(err.Error()) + } return gui.GitCommand.AbortRebaseBranch() } |