Comparing version 0.0.6 to 0.0.7
@@ -34,5 +34,6 @@ | ||
var name = codes[code], | ||
message = name, | ||
className = name.replace(/\s+/g, ""); | ||
var name = codes[code], | ||
message = name, | ||
className = name.replace(/\s+/g, ""), | ||
ccName = className.substr(0, 1).toLowerCase() + className.substr(1) | ||
@@ -45,2 +46,3 @@ if(exports[className]) { | ||
err.code = code; | ||
err[ccName] = true; | ||
if(tags) err.tags = tags; | ||
@@ -67,3 +69,3 @@ return err; | ||
//newer - better support against browsers | ||
exports[className.substr(0, 1).toLowerCase() + className.substr(1)] = Err.fn = function(message, tags) { | ||
exports[ccName] = Err.fn = function(message, tags) { | ||
return addInfo(new Error(message || name), tags); | ||
@@ -70,0 +72,0 @@ } |
{ | ||
"name": "comerr", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "ERROR: No README.md file found!", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
2314
60