throwy
Helper for throwing informative errors in Node.js and the browser
Install
npm install throwy
Usage
var throwy = try catch ex ex // is equivalent to JSON.stringify on the above object exmessage //is the msg from above object
You can configure throwy
to call a function for you whenever a throwy error is thrown
throwy