carlitoplatanito / gulp-nunjucks-render

[Gulp](https://github.com/wearefractal/gulp) plugin to render [Nunjucks](http://mozilla.github.io/nunjucks/) templates
149 stars 33 forks source link

Add error filename to PluginError object #28

Closed joemaller closed 8 years ago

joemaller commented 8 years ago

This PR adds the file.path of the file throwing nunjucks errors into the gulp-util PluginError object. Basically copies what's going on in gulp-nunjucks on lines 21 and 29.

Also adds two simple tests, just because.

kristijanhusak commented 8 years ago

This looks fine to me. @carlosll I'll leave it to you to merge it.

joemaller commented 8 years ago

I refactored the tests a little, more elegant handling of the stream error listeners. (discussed here)

kristijanhusak commented 8 years ago

This looks ok, i'll merge it in.