forked from forgejo/forgejo
Use ServerError provided by Context (#14333)
... instead of InternalServerError by macaron
This commit is contained in:
parent
f76c30094f
commit
60a3297a33
4 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue