Include missed throw error.

This commit is contained in:
Edimar Cardoso
2022-07-28 18:54:50 -03:00
parent e76009507d
commit ff0da119b7

View File

@@ -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.'
);
}