Permalink
Browse files

Print error message to view

  • Loading branch information...
davidmerfield committed Nov 30, 2018
1 parent 1a1a351 commit d90e9c8b7c2119aa97403d1f6f52748b0403fde5
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/build/templates.js
@@ -23,7 +23,7 @@ var GLOBAL_TEMPLATE_DIRECTORY = TEMPLATES_DIRECTORY + "/_";
// Build every template and then
if (require.main === module) {
main(TEMPLATES_DIRECTORY, function(err) {
if (err) throw err;
if (err) console.error(err);
removeExtinctTemplates(TEMPLATES_DIRECTORY, function(err) {
if (err) throw err;
@@ -166,8 +166,9 @@ function buildViews(directory, id, views, callback) {
Template.setView(id, view, function onSet(err) {
if (err) {
view.content = err;
view.content = err.toString();
Template.setView(id, view, function() {});
console.log('Error in view:', path);
return next(err);
}

0 comments on commit d90e9c8

Please sign in to comment.