From a1ee11e54e1f08b0df1712a69a65a6604ae46711 Mon Sep 17 00:00:00 2001 From: Glenn Vriesman Date: Thu, 29 Nov 2018 18:02:56 +0100 Subject: [PATCH] Added error check to satisfy ci --- pkg/gui/branches_panel.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() }