aboutsummaryrefslogtreecommitdiffstats
path: root/services/pull/check.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/check.go')
-rw-r--r--services/pull/check.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/pull/check.go b/services/pull/check.go
index b1b9505823..c5d8a585cb 100644
--- a/services/pull/check.go
+++ b/services/pull/check.go
@@ -201,7 +201,9 @@ func TestPullRequests(ctx context.Context) {
} else if err = TestPatch(pr); err != nil {
log.Error("testPatch[%d]: %v", pr.ID, err)
pr.Status = models.PullRequestStatusError
- pr.UpdateCols("status")
+ if err := pr.UpdateCols("status"); err != nil {
+ log.Error("update pr [%d] status to PullRequestStatusError failed: %v", pr.ID, err)
+ }
continue
}
checkAndUpdateStatus(pr)