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:
parent
77faf85cfc
commit
75ab8ec4d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user