summaryrefslogtreecommitdiffstats
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-15 04:27:22 +0800
committerGitHub <noreply@github.com>2021-01-14 21:27:22 +0100
commit60a3297a33b2209ae7acf6fd84afd62e095e01aa (patch)
tree641587633e7443f02ff666c02f2b2a640634ba46 /routers/repo/pull.go
parentf76c30094f086162d09926a95e9a75c91177a674 (diff)
downloadgitea-60a3297a33b2209ae7acf6fd84afd62e095e01aa.tar.gz
gitea-60a3297a33b2209ae7acf6fd84afd62e095e01aa.zip
Use ServerError provided by Context (#14333)
... instead of InternalServerError by macaron
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 1594e9a9c4..01c6efaa1d 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -713,11 +713,11 @@ func UpdatePullRequest(ctx *context.Context) {
}
if err := issue.PullRequest.LoadBaseRepo(); err != nil {
- ctx.InternalServerError(err)
+ ctx.ServerError("LoadBaseRepo", err)
return
}
if err := issue.PullRequest.LoadHeadRepo(); err != nil {
- ctx.InternalServerError(err)
+ ctx.ServerError("LoadHeadRepo", err)
return
}