Improve the error message

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
This commit is contained in:
MaksimZhukov 2022-12-05 21:19:40 +01:00 committed by GitHub
parent 6c87c81bbd
commit 7c97a81ef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
);