Use ServerError provided by Context (#14333)

... instead of InternalServerError by macaron
This commit is contained in:
Lunny Xiao 2021-01-15 04:27:22 +08:00 committed by GitHub
parent f76c30094f
commit 60a3297a33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -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
}
}