Skip to content

Commit

Permalink
Fixed bug in template build script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Dec 6, 2018
1 parent 00ab16f commit 148eecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build/templates.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function buildViews(directory, id, views, callback) {
} }


try { try {
viewContent = fs.readFileSync(directory + "/" + viewFilename, "utf-8"); viewContent = fs.readFileSync(path, "utf-8");
} catch (err) { } catch (err) {
return next(); return next();
} }
Expand All @@ -164,6 +164,7 @@ function buildViews(directory, id, views, callback) {
view = newView; view = newView;
} }



Template.setView(id, view, function onSet(err) { Template.setView(id, view, function onSet(err) {
if (err) { if (err) {
view.content = err.toString(); view.content = err.toString();
Expand Down

0 comments on commit 148eecb

Please sign in to comment.