You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Error Messages and Fix Architecture Detection for IBM Semeru (#677)
* Updated Error message for Semuru
* Enhanced error message
* Added architecture to semeru
* updated code to provide aarch64 for arm64 architecture for semeru
* updated semver message
* updated semver error message
* Enhanced the error message for semeru
* Enhanced error messaged for semeru distribution
* enhanced error message for semeru
if (!supportedArchitectures.includes(this.architecture)) {
124943
-
throw new Error(`Unsupported architecture for IBM Semeru: ${this.architecture}, the following are supported: ${supportedArchitectures.join(', ')}`);
124942
+
const arch = this.distributionArchitecture();
124943
+
if (!supportedArchitectures.includes(arch)) {
124944
+
throw new Error(`Unsupported architecture for IBM Semeru: ${this.architecture} for your current OS version, the following are supported: ${supportedArchitectures.join(', ')}`);
124944
124945
}
124945
124946
if (!this.stable) {
124946
124947
throw new Error('IBM Semeru does not provide builds for early access versions');
@@ -124974,7 +124975,7 @@ class SemeruDistribution extends base_installer_1.JavaBase {
124974
124975
const availableOptionsMessage = availableOptions
124975
124976
? `\nAvailable versions: ${availableOptions}`
124976
124977
: '';
124977
-
throw new Error(`Could not find satisfied version for SemVer '${version}'. ${availableOptionsMessage}`);
124978
+
throw new Error(`Could not find satisfied version for SemVer version '${version}' for your current OS version for ${this.architecture} architecture ${availableOptionsMessage}`);
124978
124979
}
124979
124980
return resolvedFullVersion;
124980
124981
});
@@ -124999,7 +125000,7 @@ class SemeruDistribution extends base_installer_1.JavaBase {
}, the following are supported: ${supportedArchitectures.join(', ')}`
42
+
} for your current OS version, the following are supported: ${supportedArchitectures.join(
43
+
', '
44
+
)}`
41
45
);
42
46
}
43
47
@@ -81,7 +85,7 @@ export class SemeruDistribution extends JavaBase {
81
85
? `\nAvailable versions: ${availableOptions}`
82
86
: '';
83
87
thrownewError(
84
-
`Could not find satisfied version for SemVer '${version}'.${availableOptionsMessage}`
88
+
`Could not find satisfied version for SemVer version '${version}' for your current OS version for ${this.architecture} architecture${availableOptionsMessage}`
85
89
);
86
90
}
87
91
@@ -124,7 +128,7 @@ export class SemeruDistribution extends JavaBase {
0 commit comments