mirror of
https://github.com/actions/setup-java.git
synced 2025-06-29 04:24:14 +00:00
enhanced error message for semeru
This commit is contained in:
parent
d141a64379
commit
bd480edf49
3 changed files with 9 additions and 7 deletions
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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue