diff --git a/__tests__/distributors/semeru-installer.test.ts b/__tests__/distributors/semeru-installer.test.ts index 868e06d0..690478f7 100644 --- a/__tests__/distributors/semeru-installer.test.ts +++ b/__tests__/distributors/semeru-installer.test.ts @@ -207,7 +207,7 @@ describe('findPackageForDownload', () => { }); distribution['getAvailableVersions'] = async () => []; await expect(distribution['findPackageForDownload']('8')).rejects.toThrow( - `Unsupported architecture: ${arch} is not supported for IBM Semeru 8 for your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.` + `Unsupported architecture for IBM Semeru: ${arch} for your current OS version, the following are supported: x64, x86, ppc64le, ppc64, s390x, aarch64` ); } ); diff --git a/dist/setup/index.js b/dist/setup/index.js index cfb9dfae..878191fb 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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'); diff --git a/src/distributions/semeru/installer.ts b/src/distributions/semeru/installer.ts index 9beea71e..5e3e2faf 100644 --- a/src/distributions/semeru/installer.ts +++ b/src/distributions/semeru/installer.ts @@ -22,8 +22,7 @@ const supportedArchitectures = [ 'ppc64le', 'ppc64', 's390x', - 'aarch64', - 'arm64' + 'aarch64' ]; export class SemeruDistribution extends JavaBase { @@ -38,7 +37,11 @@ export class SemeruDistribution extends JavaBase { 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.` + `Unsupported architecture for IBM Semeru: ${ + this.architecture + } for your current OS version, the following are supported: ${supportedArchitectures.join( + ', ' + )}` ); }