mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 01:41:46 +00:00
enhanced error message for semeru
This commit is contained in:
parent
d141a64379
commit
bd480edf49
@ -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`
|
||||
);
|
||||
}
|
||||
);
|
||||
|
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
@ -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');
|
||||
|
@ -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(
|
||||
', '
|
||||
)}`
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user