UNPKG

@coko/server

Version:

Reusable server for use by Coko's projects

18 lines 638 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ROLLBACK_LIMIT_MESSAGE = 'Rollbacks can only go as far as the point where the coko server v4 upgrade occurred.'; class RollbackLimitError extends Error { constructor(message, options = {}) { super(message); const { metaLimit } = options; if (metaLimit) { this.message = `${ROLLBACK_LIMIT_MESSAGE} ${message}`; } else { this.message = message; } this.name = 'RollbackLimitError'; } } exports.default = RollbackLimitError; //# sourceMappingURL=RollbackLimitError.js.map