@contentstack/cli-cm-seed
Version:
create a Stack from existing content types, entries, assets, etc.
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;