Skip to content

Node.js based forum software built for the modern web

check err

barisusaklid1b457b066c8
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);