From d1b457b066c840e9a268cb6a1df47b0d9fa219d7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 14 Nov 2014 14:09:29 -0500 Subject: [PATCH] check err --- src/meta/templates.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meta/templates.js b/src/meta/templates.js index 2d93dfda60..d89107db13 100644 --- a/src/meta/templates.js +++ b/src/meta/templates.js @@ -31,6 +31,9 @@ Templates.compile = function(callback) { themeTemplatesPath = nconf.get('theme_templates_path'); plugins.getTemplates(function(err, pluginTemplates) { + if (err) { + return callback(err); + } winston.info('[meta/templates] Compiling templates'); rimraf.sync(viewsPath); mkdirp.sync(viewsPath);