Skip to content

Commit

Permalink
Merge pull request #157 from kazagkazag/master
Browse files Browse the repository at this point in the history
Issue #156 Throws errors if template is broken
  • Loading branch information
gakimball authored Feb 11, 2018
2 parents 37b78d5 + 27903a4 commit 05227bd
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 05227bd

Please sign in to comment.