@levimc-lse/scaffold
Version:
A utility for assisting in the development of Legacy Script Engine plugins.
22 lines (21 loc) • 930 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemotePluginInstallationError = void 0;
class RemotePluginInstallationError extends Error {
constructor(leviLaminaServer) {
const message = `Failed to install plugin package to LeviLamina ${leviLaminaServer.getRootPath()} in ${leviLaminaServer.getRemoteAddress(false)}.`;
super(message);
this.msg = message;
this.leviLaminaServer = leviLaminaServer;
}
getMessage() {
return this.msg;
}
getSuggestion() {
const suggestion = new Array();
suggestion.push(`Check the SSH user permissions in ${this.leviLaminaServer.getRootPath()} of ${this.leviLaminaServer.getRemoteAddress(false)}.`);
suggestion.push("Check the available disk space on the remote server.");
return suggestion;
}
}
exports.RemotePluginInstallationError = RemotePluginInstallationError;