diff --git a/routers/web/user/setting/notifications.go b/routers/web/user/setting/notifications.go index ecb7b80620..7aa67a5ce4 100644 --- a/routers/web/user/setting/notifications.go +++ b/routers/web/user/setting/notifications.go @@ -21,7 +21,7 @@ const tplSettingsNotifications templates.TplName = "user/settings/notifications" // Notifications render user's notifications settings func Notifications(ctx *context.Context) { if !setting.Service.EnableNotifyMail { - ctx.NotFound(errors.New("NotifyMail not enabled")) + ctx.NotFound(nil) return }