Enhanced the error message for semeru

This commit is contained in:
mahabaleshwars 2024-08-28 10:19:16 +05:30
parent ae113ef723
commit 7c6fe208f4
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -124976,7 +124976,7 @@ class SemeruDistribution extends base_installer_1.JavaBase {
const availableOptionsMessage = availableOptions const availableOptionsMessage = availableOptions
? `\nAvailable versions: ${availableOptions}` ? `\nAvailable versions: ${availableOptions}`
: ''; : '';
throw new Error(`Could not find satisfied version for SemVer '${version}'. on your current OS version for ${arch} ${availableOptionsMessage}`); throw new Error(`Could not find satisfied version for SemVer '${version}' on your current OS version for ${this.architecture} ${availableOptionsMessage}`);
} }
return resolvedFullVersion; return resolvedFullVersion;
}); });

View file

@ -82,7 +82,7 @@ export class SemeruDistribution extends JavaBase {
? `\nAvailable versions: ${availableOptions}` ? `\nAvailable versions: ${availableOptions}`
: ''; : '';
throw new Error( throw new Error(
`Could not find satisfied version for SemVer '${version}'. on your current OS version for ${this.architecture} ${availableOptionsMessage}` `Could not find satisfied version for SemVer '${version}' on your current OS version for ${this.architecture} ${availableOptionsMessage}`
); );
} }