Skip to content

Commit 5a7e9c1

Browse files
UPDATE
Co-authored-by: wxiaoguang <[email protected]> Signed-off-by: NorthRealm <[email protected]>
1 parent ede1b95 commit 5a7e9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/user/setting/notifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const tplSettingsNotifications templates.TplName = "user/settings/notifications"
2121
// Notifications render user's notifications settings
2222
func Notifications(ctx *context.Context) {
2323
if !setting.Service.EnableNotifyMail {
24-
ctx.NotFound(errors.New("NotifyMail not enabled"))
24+
ctx.NotFound(nil)
2525
return
2626
}
2727

0 commit comments

Comments
 (0)