From ff0da119b7096765c8d50e6b97f3a6b512440af4 Mon Sep 17 00:00:00 2001 From: Edimar Cardoso Date: Thu, 28 Jul 2022 18:54:50 -0300 Subject: [PATCH] Include missed throw error. --- packages/email/email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/email/email.js b/packages/email/email.js index cbe588c2ae..350109bb59 100644 --- a/packages/email/email.js +++ b/packages/email/email.js @@ -293,7 +293,7 @@ Email.sendAsync = async function (options) { if (Meteor.isProduction && !mailUrlEnv && !mailUrlSettings) { // This check is mostly necessary when using the flag --production when running locally. // And it works as a reminder to properly set the mail URL when running locally. - new Error( + throw new Error( 'You have not provided a mail URL. You can provide it by using the environment variable MAIL_URL or your settings. You can read more about it here: https://docs.meteor.com/api/email.html.' ); }