aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-12 16:32:05 +0200
committerChocobozzz <me@florianbigard.com>2022-07-12 16:32:05 +0200
commiteaaf316fe12266b071069c27c01a827fdafcca41 (patch)
tree8e5928c6e24f8f90d8ce86ad04cb5740309a8a7f
parent46f7cd6837311019acef6e2086c7b006e6dbe1b9 (diff)
downloadPeerTube-eaaf316fe12266b071069c27c01a827fdafcca41.tar.gz
PeerTube-eaaf316fe12266b071069c27c01a827fdafcca41.tar.zst
PeerTube-eaaf316fe12266b071069c27c01a827fdafcca41.zip
Don't display errors when SMTP is not configured
info is enough
-rw-r--r--server/lib/emailer.ts3
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