mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Include missed throw error.
This commit is contained in:
@@ -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.'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user