mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
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
|
@ -1117,7 +1117,7 @@ func ViewIssue(ctx *context.Context) {
|
|||
iw.IssueID = issue.ID
|
||||
iw.IsWatching, err = models.CheckIssueWatch(ctx.User, issue)
|
||||
if err != nil {
|
||||
ctx.InternalServerError(err)
|
||||
ctx.ServerError("CheckIssueWatch", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue