source:
trip-planner-front/node_modules/yargs/lib/yerror.js@
b738035
Last change on this file since b738035 was e29cc2e, checked in by , 3 years ago | |
---|---|
|
|
File size: 254 bytes |
Line | |
---|---|
1 | 'use strict' |
2 | function YError (msg) { |
3 | this.name = 'YError' |
4 | this.message = msg || 'yargs error' |
5 | Error.captureStackTrace(this, YError) |
6 | } |
7 | |
8 | YError.prototype = Object.create(Error.prototype) |
9 | YError.prototype.constructor = YError |
10 | |
11 | module.exports = YError |
Note:
See TracBrowser
for help on using the repository browser.