Permalink
Browse files

Fixed bug in template build script

  • Loading branch information...
davidmerfield committed Dec 6, 2018
1 parent 00ab16f commit 148eecb2ab16bf96f3130d36b8834c6893cb2ce4
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/build/templates.js
@@ -147,7 +147,7 @@ function buildViews(directory, id, views, callback) {
}
try {
viewContent = fs.readFileSync(directory + "/" + viewFilename, "utf-8");
viewContent = fs.readFileSync(path, "utf-8");
} catch (err) {
return next();
}
@@ -164,6 +164,7 @@ function buildViews(directory, id, views, callback) {
view = newView;
}
Template.setView(id, view, function onSet(err) {
if (err) {
view.content = err.toString();

0 comments on commit 148eecb

Please sign in to comment.