From 66f3978ab58b161d00deb434abd9fa5cec16c6cc Mon Sep 17 00:00:00 2001 From: Yuki Osaki Date: Sun, 31 Oct 2021 23:45:16 +0900 Subject: [PATCH] use surfaceError --- pkg/gui/branches_panel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 879b9d412..b04ff8856 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -78,7 +78,8 @@ func (gui *Gui) refreshBranches() { func (gui *Gui) refreshGithubPullRequests() { prs, err := gui.GitCommand.GithubMostRecentPRs() if err != nil { - gui.Log.Error(err) + _ = gui.surfaceError(err) + return } gui.State.GithubState.RecentPRs = prs