Commit dcec40f2 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

log error

parent 658dd4d8
...@@ -80,7 +80,7 @@ module.exports = function (app, config, lang) { ...@@ -80,7 +80,7 @@ module.exports = function (app, config, lang) {
mailer.options.html = emailContent; mailer.options.html = emailContent;
mailer.transport.sendMail(mailer.options, function(err) { mailer.transport.sendMail(mailer.options, function(err) {
if (err) { if (err) {
console.log('cannot send email') console.error('cannot send email')
throw err throw err
} }
}) })
...@@ -278,11 +278,12 @@ module.exports = function (app, config, lang) { ...@@ -278,11 +278,12 @@ module.exports = function (app, config, lang) {
mailer.options.subject = emailSubject; mailer.options.subject = emailSubject;
mailer.options.text = emailContent; mailer.options.text = emailContent;
mailer.transport.sendMail(mailer.options, function(err) { mailer.transport.sendMail(mailer.options, function(err) {
done(err, 'done'); done(err, 'done');
}); });
} }
], function(err) { ], function(err) {
if (err) { if (err) {
console.error(err)
res.flash('error', 'Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.'); res.flash('error', 'Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.');
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment