use surfaceError

This commit is contained in:
Yuki Osaki 2021-10-31 23:45:16 +09:00
parent c8de14aa9d
commit 66f3978ab5

View file

@ -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