Fixes issues with errors
This commit is contained in:
parent
3233882c40
commit
121b9fc090
|
@ -15,3 +15,4 @@ npm-debug.log
|
|||
apiref
|
||||
bower_components
|
||||
dist
|
||||
report
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue