@contentstack/cli-cm-bootstrap
Version:
Bootstrap contentstack apps
17 lines (16 loc) • 490 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class GithubError extends Error {
constructor(message, status) {
super(message);
this.status = status;
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === "function") {
Error.captureStackTrace(this, this.constructor);
}
else {
this.stack = new Error(message).stack;
}
}
}
exports.default = GithubError;