From eaaf316fe12266b071069c27c01a827fdafcca41 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Jul 2022 16:32:05 +0200 Subject: [PATCH] Don't display errors when SMTP is not configured info is enough --- server/lib/emailer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index 42d7650dd..bd1089530 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts @@ -132,7 +132,8 @@ class Emailer { async sendMail (options: EmailPayload) { if (!isEmailEnabled()) { - throw new Error('Cannot send mail because SMTP is not configured.') + logger.info('Cannot send mail because SMTP is not configured.') + return } const fromDisplayName = options.from