We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd3b4b commit 472124bCopy full SHA for 472124b
routers/web/user/setting/notifications.go
@@ -35,7 +35,7 @@ func Notifications(ctx *context.Context) {
35
// SetGlobalEmailNotificationPreference set user's email notification preference
36
func SetGlobalEmailNotificationPreference(ctx *context.Context) {
37
if !setting.Service.EnableNotifyMail {
38
- ctx.HTTPError(http.StatusNotFound)
+ ctx.NotFound(errors.New("NotifyMail not enabled"))
39
return
40
}
41
0 commit comments