diff options
Diffstat (limited to 'node_modules/request/node_modules/har-validator/lib/browser/error.js')
-rw-r--r-- | node_modules/request/node_modules/har-validator/lib/browser/error.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/node_modules/request/node_modules/har-validator/lib/browser/error.js b/node_modules/request/node_modules/har-validator/lib/browser/error.js deleted file mode 100644 index f49fcf231..000000000 --- a/node_modules/request/node_modules/har-validator/lib/browser/error.js +++ /dev/null @@ -1,15 +0,0 @@ -export default function HARError(errors) { - let 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;
\ No newline at end of file |