error-stamp
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "error-stamp", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Mutate an Error object to include a stamp of current step", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,4 +35,4 @@ # error-stamp [![Build Status][ci-img]][ci] | ||
if(stamp(err)) { | ||
callback(err); | ||
if(err) { | ||
callback(stamp(err)); | ||
return; | ||
@@ -45,3 +45,3 @@ } | ||
### Before using the module | ||
__node example.js__ | ||
`node examples/example.js` | ||
```bash | ||
@@ -59,3 +59,3 @@ /tmp/error-stamp/example.js:40 | ||
### After using the module | ||
__node example_withstamps.js__ | ||
`node examples/example_withstamps.js` | ||
```bash | ||
@@ -97,3 +97,3 @@ /tmp/error-stamp/example_withstamps.js:42 | ||
- [longjohn](https://github.com/mattinsler/longjohn) does the job, but as it has recommended- not intended on production environment (note it interferes with every asyc execution). | ||
- [async-stacktrace](https://github.com/Pita/async-stacktrace) has greatly inspired this module, but it does more just adding trace stamps (throw errors, call callbacks and conditionally create Error objects). | ||
- [async-stacktrace](https://github.com/Pita/async-stacktrace) has greatly inspired this module, but it does more than just adding trace stamps (throw errors, call callbacks and conditionally create Error objects). | ||
@@ -100,0 +100,0 @@ ## Notes |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12109