const path = require('path');
const EmailTemplate = require('email-templates').EmailTemplate;

module.exports = (templateName, locale, data) => {
  return new Promise((resolve, reject) => {
    const templateDir = path.join(__dirname, '../../../', 'email-templates', `${templateName}-${locale}`);
    const template = new EmailTemplate(templateDir);
    template.render(data, (err, result) => {
      if (err) return reject(err);
      resolve(result);
    });
  });
};

@@ -405,26 +405,129 @@
 (err
-) return reject(er
+ && err.code !== 'ENOENT') return reject(err);%0A      if (err.code === 'ENOENT') console.warn('File not found', templateDi
 r);%0A

Exclude ENOENT for new template emails (#98)