spirit-errors
v1.0.1
Published
A error handler for the spirit static file generator
Downloads
2
Readme
Spirit Errors
Summary
the Spirit Errors middleware attaches and error event listener to log errors as part of the Spirit Core static file generator.
Syntax
var err = new Error( "Oops something went wrong." ) ;
spiritCore.emit( spiritCore.ERROR_EVENT, err ) ;
parameters
err
A valid javascript Error Object
.
Examples
install Spirit Core
npm install spirit-core
var spirit = require( 'spirit-core' ) ;
var err = new Error( "Uh oh." ) ;
spirit.emit( spirit.ERROR_EVENT, err ) ;
Handmade in San Francisco California by Alex Ray