mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
surface error when trying to set upstream
This commit is contained in:
parent
d672b7342f
commit
305f211615
|
|
@ -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}})
|
||||
|
|
|
|||
Loading…
Reference in a new issue