mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-28 09:11:19 +00:00
Use ServerError provided by Context (#14333)
... instead of InternalServerError by macaron
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user