summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue_watch.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/issue_watch.go')
-rw-r--r--routers/repo/issue_watch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue_watch.go b/routers/repo/issue_watch.go
index 42ffaec5b8..a499b70d9c 100644
--- a/routers/repo/issue_watch.go
+++ b/routers/repo/issue_watch.go
@@ -17,7 +17,7 @@ import (
func IssueWatch(c *context.Context) {
watch, err := strconv.ParseBool(c.Req.PostForm.Get("watch"))
if err != nil {
- c.Handle(http.StatusInternalServerError, "watch is not bool", err)
+ c.ServerError("watch is not bool", err)
return
}
@@ -27,7 +27,7 @@ func IssueWatch(c *context.Context) {
}
if err := models.CreateOrUpdateIssueWatch(c.User.ID, issue.ID, watch); err != nil {
- c.Handle(http.StatusInternalServerError, "CreateOrUpdateIssueWatch", err)
+ c.ServerError("CreateOrUpdateIssueWatch", err)
return
}