Skip to content

Commit 05227bd

Browse files
authored
Merge pull request #157 from kazagkazag/master
Issue #156 Throws errors if template is broken
2 parents 37b78d5 + 27903a4 commit 05227bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/render.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ function render(file, enc, cb) {
7777
file.contents = new Buffer('<!DOCTYPE html><html><head><title>Panini error</title></head><body><pre>'+e+'</pre></body></html>');
7878
}
7979

80-
// Log the error into console
81-
console.log('Panini: rendering error ocurred.\n', e);
80+
throw new Error('Panini: rendering error occured.\n' + e);
8281
}
8382
finally {
8483
// This sends the modified file back into the stream

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)