diff options
author | 6543 <6543@obermui.de> | 2021-05-04 14:03:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 14:03:02 +0200 |
commit | 1cd301796c23153a398acc1049428b1b1fb4354a (patch) | |
tree | 98d354441376a88617d01985bab451372b0917eb /services | |
parent | ed393779004335a0afcca0dfac48937db41fabd6 (diff) | |
download | gitea-1cd301796c23153a398acc1049428b1b1fb4354a.tar.gz gitea-1cd301796c23153a398acc1049428b1b1fb4354a.zip |
Only log Error on getLastCommitStatus error to let pull list still be visible (#15716)
Diffstat (limited to 'services')
-rw-r--r-- | services/pull/pull.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/pull/pull.go b/services/pull/pull.go index 153a75094d..cc560fb199 100644 --- a/services/pull/pull.go +++ b/services/pull/pull.go @@ -677,7 +677,8 @@ func GetIssuesLastCommitStatus(issues models.IssueList) (map[int64]*models.Commi status, err := getLastCommitStatus(gitRepo, issue.PullRequest) if err != nil { - return nil, err + log.Error("getLastCommitStatus: cant get last commit of pull [%d]: %v", issue.PullRequest.ID, err) + continue } res[issue.PullRequest.ID] = status } |