mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
Enhanced error messaged for semeru distribution
This commit is contained in:
parent
7c6fe208f4
commit
d141a64379
3 changed files with 5 additions and 5 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -124942,7 +124942,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} on your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.`);
|
||||
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.`);
|
||||
}
|
||||
if (!this.stable) {
|
||||
throw new Error('IBM Semeru does not provide builds for early access versions');
|
||||
|
@ -124976,7 +124976,7 @@ class SemeruDistribution extends base_installer_1.JavaBase {
|
|||
const availableOptionsMessage = availableOptions
|
||||
? `\nAvailable versions: ${availableOptions}`
|
||||
: '';
|
||||
throw new Error(`Could not find satisfied version for SemVer '${version}' on your current OS version for ${this.architecture} ${availableOptionsMessage}`);
|
||||
throw new Error(`Could not find satisfied version for SemVer version '${version}' for your current OS version for ${this.architecture} architecture ${availableOptionsMessage}`);
|
||||
}
|
||||
return resolvedFullVersion;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue