error-patch
v0.0.5
Published
A patched error object to catch all errors
Downloads
6
Readme
:warning: ERROR PATCH!
Patch all error classes so that you can run them through a callback before throwing.
Usage
const errorPatch = require(`error-patch`)
errorPatch(error => {
// handle the error object
someLoggerFunction(error)
})
throw new Error('ERRRRORRRRR!!!')