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

fix: use createErrorPanel in handleIgnoreFile

This commit is contained in:
Rogers 2018-08-07 19:04:41 +08:00
parent 948f6a1f7a
commit 50e4f74350

View File

@ -100,7 +100,7 @@ func handleFileRemove(g *gocui.Gui, v *gocui.View) error {
func handleIgnoreFile(g *gocui.Gui, v *gocui.View) error {
file, err := getSelectedFile(g)
if err != nil {
return err
return createErrorPanel(g, err.Error())
}
if file.Tracked {
return createErrorPanel(g, "Cannot ignore tracked files")