0.1.1 • Published 6 years ago

augnerr v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

augnerr

Augment Node.js errors: Make some errors more helpful.

API

This module exports one function that has some methods:

augmentError(err)

Augments err, in-place if possible. Returns the augmented error.

augmentError.re(err)

("re-throw")

Throws the augmented error.

Augmentations

File system errors

  • If .path is relative, add the current working directory as .cwd.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

0.1.1

6 years ago

0.1.0

6 years ago