From 207edb9c3f5485359f6645100e00cbb6c25e020b Mon Sep 17 00:00:00 2001 From: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:38:14 +0530 Subject: [PATCH] Updated Error message for Semuru --- __tests__/distributors/semeru-installer.test.ts | 2 +- dist/setup/index.js | 4 ++-- src/distributions/semeru/installer.ts | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/__tests__/distributors/semeru-installer.test.ts b/__tests__/distributors/semeru-installer.test.ts index 97f25cc8..8220660e 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 for IBM Semeru: ${arch}, the following are supported: x64, x86, ppc64le, ppc64, s390x, aarch64` + `Unsupported architecture for IBM Semeru: ${arch}, is not supported for IBM Semeru 8 on your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.` ); } ); diff --git a/dist/setup/index.js b/dist/setup/index.js index be40d6db..d57f314b 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -124940,7 +124940,7 @@ class SemeruDistribution extends base_installer_1.JavaBase { findPackageForDownload(version) { return __awaiter(this, void 0, void 0, function* () { if (!supportedArchitectures.includes(this.architecture)) { - throw new Error(`Unsupported architecture for IBM Semeru: ${this.architecture}, the following are supported: ${supportedArchitectures.join(', ')}`); + throw new Error(`Unsupported architecture for IBM Semeru: ${this.architecture}, is not supported for IBM Semeru ${this.version} on your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.`); } if (!this.stable) { throw new Error('IBM Semeru does not provide builds for early access versions'); @@ -127946,4 +127946,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"] /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; +; \ No newline at end of file diff --git a/src/distributions/semeru/installer.ts b/src/distributions/semeru/installer.ts index c4075261..80700b17 100644 --- a/src/distributions/semeru/installer.ts +++ b/src/distributions/semeru/installer.ts @@ -35,9 +35,7 @@ export class SemeruDistribution extends JavaBase { ): Promise { if (!supportedArchitectures.includes(this.architecture)) { throw new Error( - `Unsupported architecture for IBM Semeru: ${ - this.architecture - }, the following are supported: ${supportedArchitectures.join(', ')}` + `Unsupported architecture for IBM Semeru: ${this.architecture}, is not supported for IBM Semeru ${this.version} on your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.` ); }