0.1.1 • Published 6 years ago
augnerr v0.1.1
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