Skip to content

Commit

Permalink
Issue foundation#156 Throws errors if template is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Zagrabski committed Feb 11, 2018
1 parent 37b78d5 commit 27903a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ function render(file, enc, cb) {
file.contents = new Buffer('<!DOCTYPE html><html><head><title>Panini error</title></head><body><pre>'+e+'</pre></body></html>');
}

// Log the error into console
console.log('Panini: rendering error ocurred.\n', e);
throw new Error('Panini: rendering error occured.\n' + e);
}
finally {
// This sends the modified file back into the stream
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27903a4

Please sign in to comment.