You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. 'use strict'
  2. function YError (msg) {
  3. this.name = 'YError'
  4. this.message = msg || 'yargs error'
  5. Error.captureStackTrace(this, YError)
  6. }
  7. YError.prototype = Object.create(Error.prototype)
  8. YError.prototype.constructor = YError
  9. module.exports = YError