summaryrefslogtreecommitdiffstats
path: root/routers/admin/notice.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/notice.go')
-rw-r--r--routers/admin/notice.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/admin/notice.go b/routers/admin/notice.go
index 2cf71ee070..5892d88e58 100644
--- a/routers/admin/notice.go
+++ b/routers/admin/notice.go
@@ -34,7 +34,7 @@ func Notices(ctx *context.Context) {
notices, err := models.Notices(page, setting.UI.Admin.NoticePagingNum)
if err != nil {
- ctx.Handle(500, "Notices", err)
+ ctx.ServerError("Notices", err)
return
}
ctx.Data["Notices"] = notices
@@ -66,7 +66,7 @@ func DeleteNotices(ctx *context.Context) {
// EmptyNotices delete all the notices
func EmptyNotices(ctx *context.Context) {
if err := models.DeleteNotices(0, 0); err != nil {
- ctx.Handle(500, "DeleteNotices", err)
+ ctx.ServerError("DeleteNotices", err)
return
}