diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-05 20:16:08 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-05 21:32:08 +1100 |
commit | 5ff0ac28162327d1669300f98d95e9ed0c67db46 (patch) | |
tree | dbb5f141b37529bddc9e2abe6ecd51c1d5d98047 /pkg/gui/remotes_panel.go | |
parent | 7c1889cd70b81d9f8438c197c3d2fc89e5695160 (diff) |
prevent crash when removing remote with no urls
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index 76ca536cb..20e0be86c 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -106,7 +106,7 @@ func (gui *Gui) handleRemoveRemote(g *gocui.Gui, v *gocui.View) error { prompt: gui.Tr.LcRemoveRemotePrompt + " '" + remote.Name + "'?", handleConfirm: func() error { if err := gui.GitCommand.RemoveRemote(remote.Name); err != nil { - return err + return gui.surfaceError(err) } return gui.refreshSidePanels(refreshOptions{scope: []int{BRANCHES, REMOTES}}) |