Files
upload-google-play/node_modules/har-validator/lib/error.js
Drew Heavner 3e0a7f808c Added checks to make sure the specified track exists
Added precondition checks to validate input files and paths to return more informative error messages as per #2
2019-12-11 23:40:19 -05:00

18 lines
373 B
JavaScript

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