Skip to content

Commit

Permalink
Added error check to satisfy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
glvr182 authored and jesseduffield committed Dec 10, 2018
1 parent 7b850c5 commit a1ee11e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/gui/branches_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit a1ee11e

Please sign in to comment.