1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

catch rebase errors and show in error panels

This commit is contained in:
Jesse Duffield 2019-02-11 21:29:47 +11:00
parent 77faf85cfc
commit 75ab8ec4d9

View File

@ -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