mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
catch rebase errors and show in error panels
This commit is contained in:
@ -28,7 +28,11 @@ func (gui *Gui) handleCreateRebaseOptionsMenu(g *gocui.Gui, v *gocui.View) error
|
|||||||
|
|
||||||
handleMenuPress := func(index int) error {
|
handleMenuPress := func(index int) error {
|
||||||
command := options[index].value
|
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
|
var title string
|
||||||
|
Reference in New Issue
Block a user