From 7c6fe208f4b3781ab5bf66ae85833a6a76049eff Mon Sep 17 00:00:00 2001 From: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com> Date: Wed, 28 Aug 2024 10:19:16 +0530 Subject: [PATCH] Enhanced the error message for semeru --- dist/setup/index.js | 2 +- src/distributions/semeru/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 9bcc0b83..eac081e7 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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 ${arch} ${availableOptionsMessage}`); + throw new Error(`Could not find satisfied version for SemVer '${version}' on your current OS version for ${this.architecture} ${availableOptionsMessage}`); } return resolvedFullVersion; }); diff --git a/src/distributions/semeru/installer.ts b/src/distributions/semeru/installer.ts index 3443b94a..c39242bb 100644 --- a/src/distributions/semeru/installer.ts +++ b/src/distributions/semeru/installer.ts @@ -82,7 +82,7 @@ export class SemeruDistribution extends JavaBase { ? `\nAvailable versions: ${availableOptions}` : ''; 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}` ); }