From 7c97a81ef362de63cf3b6d648017c0d1115b505c Mon Sep 17 00:00:00 2001 From: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> Date: Mon, 5 Dec 2022 21:19:40 +0100 Subject: [PATCH] Improve the error message Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com> --- src/find-python.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/find-python.ts b/src/find-python.ts index 8cb3bdb4..3e033232 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -88,7 +88,7 @@ export async function useCpythonVersion( const osInfo = await getOSInfo(); throw new Error( [ - `Version ${version} with arch ${architecture} not found for ${osInfo}`, + `The version '${version}' with architecture '${architecture}' was not found for ${osInfo ? osInfo : 'this operating system'}.`, `The list of all available versions can be found here: ${installer.MANIFEST_URL}` ].join(os.EOL) );