Comparing version 1.0.0 to 1.0.1
@@ -14,2 +14,3 @@ /* | ||
exports.VError = VError; | ||
exports.MultiError = MultiError; | ||
@@ -57,1 +58,19 @@ /* | ||
}; | ||
/* | ||
* Represents a collection of errors for the purpose of consumers that generally | ||
* only deal with one error. Callers can extract the individual errors | ||
* contained in this object, but may also just treat it as a normal single | ||
* error, in which case a summary message will be printed. | ||
*/ | ||
function MultiError(errors) | ||
{ | ||
mod_assert.ok(errors.length > 0); | ||
this.ase_errors = errors; | ||
VError.call(this, errors[0], 'first of %d error%s', | ||
errors.length, errors.length == 1 ? '' : 's'); | ||
} | ||
mod_util.inherits(MultiError, VError); |
{ | ||
"name": "verror", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "richer JavaScript errors", | ||
@@ -5,0 +5,0 @@ "main": "./lib/verror.js", |
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
21873
66