diff --git a/lib/render.js b/lib/render.js index ad6e3a2..13fffc6 100644 --- a/lib/render.js +++ b/lib/render.js @@ -77,8 +77,7 @@ function render(file, enc, cb) { file.contents = new Buffer('Panini error
'+e+'
'); } - // 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 diff --git a/package-lock.json b/package-lock.json index daf2f02..6668fdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "panini", - "version": "1.5.1", + "version": "1.6.0", "lockfileVersion": 1, "requires": true, "dependencies": {