source:
trip-planner-front/node_modules/yargs/lib/yerror.js
Last change on this file was e29cc2e, checked in by , 3 years ago | |
---|---|
|
|
File size: 254 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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.