rethrow
Re-throw an error to get better error reporting for templates.
Last updated 11 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rethrow 
SYNC missed versions from official npm registry.

rethrow NPM version

Re-throw an error to get better error reporting for templates.

Based on rethrow in Jade.

Example

screen shot 2015-05-24 at 6 29 35 am

Install

Install with npm

$ npm i rethrow --save

Usage

var rethrow = require('rethrow');

See template-error for usage examples.

API

rethrow

Re-throw the given err in context to the offending template expression in filename at the given lineno.

Params

  • err {Error}: Error object
  • filename {String}: The file path of the template
  • lineno {String}: The line number of the expression causing the error.
  • str {String}: Template string

Related projects

  • assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more
  • template-error: Make template errors easy to understand and fix.
  • template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more
  • verb: Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… more

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on August 11, 2015.

Current Tags

  • 0.2.3                                ...           latest (11 years ago)

4 Versions

  • 0.2.3                                ...           11 years ago
  • 0.2.1                                ...           11 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |