1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-17 21:18:31 +02:00

surface error when trying to set upstream

This commit is contained in:
Jesse Duffield 2021-10-17 19:59:24 +11:00 committed by github-actions[bot]
parent d672b7342f
commit 305f211615

View File

@ -90,7 +90,7 @@ func (gui *Gui) handleSetBranchUpstream() error {
prompt: message,
handleConfirm: func() error {
if err := gui.GitCommand.WithSpan(gui.Tr.Spans.SetBranchUpstream).SetBranchUpstream(selectedBranch.RemoteName, selectedBranch.Name, checkedOutBranch.Name); err != nil {
return err
return gui.surfaceError(err)
}
return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{BRANCHES, REMOTES}})