UNPKG

cli-ux

Version:
14 lines (13 loc) 397 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExitError = void 0; class ExitError extends Error { constructor(status, error) { const code = 'EEXIT'; super(error ? error.message : `${code}: ${status}`); this.error = error; this['cli-ux'] = { exit: status }; this.code = code; } } exports.ExitError = ExitError;