enhanced error message for semeru

This commit is contained in:
mahabaleshwars 2024-08-29 10:24:09 +05:30
commit bd480edf49
3 changed files with 9 additions and 7 deletions

5
dist/setup/index.js vendored
View file

@ -124931,8 +124931,7 @@ const supportedArchitectures = [
'ppc64le',
'ppc64',
's390x',
'aarch64',
'arm64'
'aarch64'
];
class SemeruDistribution extends base_installer_1.JavaBase {
constructor(installerOptions) {
@ -124942,7 +124941,7 @@ class SemeruDistribution extends base_installer_1.JavaBase {
return __awaiter(this, void 0, void 0, function* () {
const arch = this.distributionArchitecture();
if (!supportedArchitectures.includes(arch)) {
throw new Error(`Unsupported architecture: ${this.architecture} is not supported for IBM Semeru ${this.version} for your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.`);
throw new Error(`Unsupported architecture for IBM Semeru: ${this.architecture} for your current OS version, the following are supported: ${supportedArchitectures.join(', ')}`);
}
if (!this.stable) {
throw new Error('IBM Semeru does not provide builds for early access versions');