error-stamp
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "error-stamp", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Mutate an Error object to include a stamp of current step", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# error-stamp [![Build Status][ci-img]][ci] | ||
Mutate a JS error object to include a stamp of current step. | ||
## Why | ||
[ci-img]: https://travis-ci.org/pazams/error-stamp.svg | ||
[ci]: https://travis-ci.org/pazams/error-stamp | ||
## Why | ||
The main motivation for this module is for using [Node.JS style callbacks](https://nodejs.org/api/errors.html#errors_node_js_style_callbacks). When passing the Error object, it contains the details of the sync call, but loses track of all async coming after. | ||
@@ -19,3 +22,3 @@ | ||
```JS | ||
var stamp = require('errorStamp'); | ||
var stamp = require('error-stamp'); | ||
@@ -31,3 +34,3 @@ if(err) { | ||
```JS | ||
var stamp = require('errorStamp'); | ||
var stamp = require('error-stamp'); | ||
@@ -34,0 +37,0 @@ if(stamp(err)) { |
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
12090
99