mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Updated Error message for Semuru
This commit is contained in:
parent
67fbd726da
commit
207edb9c3f
3 changed files with 4 additions and 6 deletions
|
@ -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.`
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -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__;
|
||||
/******/
|
||||
/******/ })()
|
||||
;
|
||||
;
|
|
@ -35,9 +35,7 @@ export class SemeruDistribution extends JavaBase {
|
|||
): Promise<JavaDownloadRelease> {
|
||||
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.`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue