Comparing version 0.2.2 to 0.2.3
@@ -99,3 +99,3 @@ /* | ||
if (!error.name || error.name === 'Error') { | ||
error.name = ErrorProto.name || 'Error'; | ||
error.name = (opts && opts.name) || ErrorProto.name || 'Error'; | ||
} | ||
@@ -102,0 +102,0 @@ |
{ | ||
"name": "errs", | ||
"description": "Simple error creation and passing utilities", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "Nodejitsu Inc. <info@nodejitsu.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
@@ -48,3 +48,9 @@ /* | ||
"that has no message": macros.create.object(opts[0]), | ||
"that has a message": macros.create.object(opts[1]) | ||
"that has a message": macros.create.object(opts[1]), | ||
"that has a name": { | ||
topic : errs.create({name: 'OverflowError'}), | ||
"should respect that name in the stack trace" : function (err) { | ||
assert.match(err.stack, /^OverflowError/); | ||
}, | ||
} | ||
}, | ||
@@ -51,0 +57,0 @@ "an error": macros.create.err(new Error('An instance of an error')), |
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
25612
534