Fixes issues with errors

This commit is contained in:
Esteban Ordano 2014-12-03 10:06:44 -03:00
parent 3233882c40
commit 121b9fc090
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ npm-debug.log
apiref
bower_components
dist
report

View File

@ -14,10 +14,10 @@ var formatMessage = function(message) {
var defineElement = function(fullName, baseClass, message) {
return fullName + ' = function() {\n' +
' this.message = ' + formatMessage(message) + ';\n' +
' ' + baseClass + '.call(this, this.message);\n' +
' this.name = "' + fullName + '";\n' +
' this.stack = (new Error()).stack;\n' +
'};\n' +
'inherits(' + fullName + ', ' + baseClass + ');\n\n';
fullName + '.prototype = Object.create(' + baseClass + '.prototype);\n' +
fullName + '.prototype.name = "' + fullName + '";\n\n';
};
var traverseNode = function(baseClass, errorDefinition) {

View File

@ -9,7 +9,7 @@
"test": "gulp test-all",
"coverage": "gulp coverage",
"build": "gulp",
"postinstall": "node_modules/gulp/bin/gulp.js browser-all"
"postinstall": "node ./lib/errors/build.js"
},
"contributors": [
{