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

Merge branch 'MLAB-522' into 'testing'

log error

See merge request !86
parents 658dd4d8 dcec40f2
Pipeline #3924 passed with stage
in 10 seconds
......@@ -80,7 +80,7 @@ module.exports = function (app, config, lang) {
mailer.options.html = emailContent;
mailer.transport.sendMail(mailer.options, function(err) {
if (err) {
console.log('cannot send email')
console.error('cannot send email')
throw err
}
})
......@@ -278,11 +278,12 @@ module.exports = function (app, config, lang) {
mailer.options.subject = emailSubject;
mailer.options.text = emailContent;
mailer.transport.sendMail(mailer.options, function(err) {
done(err, 'done');
});
done(err, 'done');
});
}
], function(err) {
if (err) {
console.error(err)
res.flash('error', 'Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.');
}
else {
......
Supports Markdown
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