Skip to content

Commit 06b0575

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

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
@@ -35,7 +35,7 @@ func Notifications(ctx *context.Context) {
3535
// SetGlobalEmailNotificationPreference set user's email notification preference
3636
func SetGlobalEmailNotificationPreference(ctx *context.Context) {
3737
if !setting.Service.EnableNotifyMail {
38-
ctx.NotFound(errors.New("NotifyMail not enabled"))
38+
ctx.NotFound(nil)
3939
return
4040
}
4141

0 commit comments

Comments
 (0)