check err in emailer

v1.18.x
barisusakli 10 years ago
parent 83ab462ff5
commit 083ba12ee0

@ -35,6 +35,9 @@ var fs = require('fs'),
email: async.apply(User.getUserField, uid, 'email'),
settings: async.apply(User.getSettings, uid)
}, function(err, results) {
if (err) {
return winston.error('[emailer] Error sending digest : ' + err.stack);
}
async.map([results.html, results.plaintext, params.subject], function(raw, next) {
translator.translate(raw, results.settings.language || meta.config.defaultLang || 'en_GB', function(translated) {
next(undefined, translated);

Loading…
Cancel
Save