This commit is contained in:
Julian Lam
2016-04-20 10:53:47 -04:00
parent 51309890fe
commit 33255d73dd
2 changed files with 6 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
"no-email-to-confirm": "This forum requires email confirmation, please click here to enter an email", "no-email-to-confirm": "This forum requires email confirmation, please click here to enter an email",
"email-confirm-failed": "We could not confirm your email, please try again later.", "email-confirm-failed": "We could not confirm your email, please try again later.",
"confirm-email-already-sent": "Confirmation email already sent, please wait %1 minute(s) to send another one.", "confirm-email-already-sent": "Confirmation email already sent, please wait %1 minute(s) to send another one.",
"sendmail-not-found": "The sendmail executable could not be found, please ensure it is installed and executable by the user running NodeBB.",
"username-too-short": "Username too short", "username-too-short": "Username too short",
"username-too-long": "Username too long", "username-too-long": "Username too long",

View File

@@ -113,7 +113,11 @@ var fallbackTransport;
} }
} }
], function (err) { ], function (err) {
if (err && err.code === 'ENOENT') {
callback(new Error('[[error:sendmail-not-found]]'));
} else {
callback(err); callback(err);
}
}); });
}; };