References Fixerd

This commit is contained in:
Luis Fernando Molina committed 2018-05-06 21:42:55 +02:00
1 parent 45c41273b5
commit e522d9302c
575 files changed
+13920 -20071

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
function HARError (errors) {
var message = 'validation failed'
this.name = 'HARError'
this.message = message
this.errors = errors
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor)
} else {
this.stack = (new Error(message)).stack
}
}
HARError.prototype = Error.prototype
module.exports = HARError