ferror

v1.0.0
a nice way to create errors that shows only what matters
errors format stack

fError

a nice way to create errors that shows only what matters

Build Status

####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

Metadata

  • ISC
  • Whatever
  • @joaquimserafim
  • released 1/10/2015

Downloads

Maintainers