UNPKG

369 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class ExitError extends Error {
4 constructor(status, error) {
5 const code = 'EEXIT';
6 super(error ? error.message : `${code}: ${status}`);
7 this.error = error;
8 this['cli-ux'] = { exit: status };
9 this.code = code;
10 }
11}
12exports.ExitError = ExitError;