ferror

1.1.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ferror

Weekly Downloads

5

Version

1.1.3

License

ISC

Last publish

Collaborators

  • quim