1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +02:00

Added error check to satisfy ci

This commit is contained in:
Glenn Vriesman 2018-11-29 18:02:56 +01:00 committed by Jesse Duffield
parent 7b850c56c4
commit a1ee11e54e

View File

@ -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()
}