ferror
v1.1.3
Published
a nice way to create errors that shows only what matters
Downloads
13
Readme
fError
a nice way to create errors that shows only what matters
####Example:
var fError = require('ferror')('The name I want');
var error = fError('some nasty error');
the output shows the string/value ('The name I want') we used for the error name & shows only the stack we need to see
The name I want: some nasty error
at /Users/quim/Projects/opensource/ferror/index.js:27:12
at Test.<anonymous> (/Users/quim/Projects/opensource/ferror/test.js:15:15)
see the example file for more info