Use debug instead

This commit is contained in:
Girish Ramakrishnan
2017-08-04 11:15:55 -07:00
parent 0c1e3ec6a0
commit 800468fbe6
+1 -1
View File
@@ -154,7 +154,7 @@ function render(templateFile, params) {
try {
content = ejs.render(safe.fs.readFileSync(path.join(MAIL_TEMPLATES_DIR, templateFile), 'utf8'), params);
} catch (e) {
console.error(e);
debug(`Error rendering ${templateFile}`, e);
}
return content;