From f5dc43644184a7c3f613d5f3e1aa1be8ed8d13af Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 10 Feb 2017 00:11:51 -0500 Subject: Minor improve on error handling --- models/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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 -- cgit v1.2.3