From 79a662fb934b348a88c395400ecc8b805f5a1642 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Wed, 18 Oct 2017 11:55:02 +0200 Subject: [PATCH] Log nunjucks parsing errors for debugging. --- js/module.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/module.js b/js/module.js index bb1cacd4..aa111ef0 100644 --- a/js/module.js +++ b/js/module.js @@ -89,6 +89,10 @@ var Module = Class.extend({ if (/^.*(\.html)$/.test(template)) { // the template is a filename this.nunjucksEnvironment().render(template, templateData, function (err, res) { + if (err) { + Log.error(err) + } + // The inner content of the div will be set after the template is received. // This isn't the most optimal way, but since it's near instant // it probably won't be an issue.