Re-throw an error to get better error reporting for templates.
Based on rethrow in Jade.
Example
Install with npm
$ npm i rethrow --save
var rethrow = require('rethrow');
See template-error for usage examples.
Re-throw the given err in context to the offending
template expression in filename at the given lineno.
Params
err {Error}: Error objectfilename {String}: The file path of the templatelineno {String}: The line number of the expression causing the error.str {String}: Template stringInstall dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 11, 2015.