1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-03 08:08:36 +00:00

Use ServerError provided by Context (#14333) (#14345)

... instead of InternalServerError by macaron
This commit is contained in:
Lunny Xiao
2021-01-15 17:36:30 +08:00
committed by GitHub
parent 096aa18249
commit 49d113945f
3 changed files with 5 additions and 5 deletions

View File

@@ -696,11 +696,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
}