aboutsummaryrefslogtreecommitdiff
path: root/models/pull.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-10 00:11:51 -0500
committerUnknwon <u@gogs.io>2017-02-10 00:11:51 -0500
commitf5dc43644184a7c3f613d5f3e1aa1be8ed8d13af (patch)
tree499042200f21842bd906d24e07ca742fa65d8f02 /models/pull.go
parentd9d329bec8984723dfad97d496278c4c9e35d5d5 (diff)
Minor improve on error handling
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go
index 97ca5444..efb24894 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -364,7 +364,7 @@ func (pr *PullRequest) testPatch() (err error) {
log.Trace("PullRequest[%d].testPatch (patchPath): %s", pr.ID, patchPath)
if err := pr.BaseRepo.UpdateLocalCopyBranch(pr.BaseBranch); err != nil {
- return fmt.Errorf("UpdateLocalCopy: %v", err)
+ return fmt.Errorf("UpdateLocalCopy [%d]: %v", pr.BaseRepoID, err)
}
pr.Status = PULL_REQUEST_STATUS_CHECKING