diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-12 16:32:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-12 16:32:05 +0200 |
commit | eaaf316fe12266b071069c27c01a827fdafcca41 (patch) | |
tree | 8e5928c6e24f8f90d8ce86ad04cb5740309a8a7f /server/lib/emailer.ts | |
parent | 46f7cd6837311019acef6e2086c7b006e6dbe1b9 (diff) | |
download | PeerTube-eaaf316fe12266b071069c27c01a827fdafcca41.tar.gz PeerTube-eaaf316fe12266b071069c27c01a827fdafcca41.tar.zst PeerTube-eaaf316fe12266b071069c27c01a827fdafcca41.zip |
Don't display errors when SMTP is not configured
info is enough
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r-- | server/lib/emailer.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
132 | 132 | ||
133 | async sendMail (options: EmailPayload) { | 133 | async sendMail (options: EmailPayload) { |
134 | if (!isEmailEnabled()) { | 134 | if (!isEmailEnabled()) { |
135 | throw new Error('Cannot send mail because SMTP is not configured.') | 135 | logger.info('Cannot send mail because SMTP is not configured.') |
136 | return | ||
136 | } | 137 | } |
137 | 138 | ||
138 | const fromDisplayName = options.from | 139 | const fromDisplayName = options.from |