1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-08 20:38:19 +02:00

polished the error message

This commit is contained in:
Aparna Jyothi 2025-06-05 18:36:20 +05:30
parent b26f6d02db
commit 32a58a97ef
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -96818,7 +96818,7 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
freethreaded = true; freethreaded = true;
} }
if (architecture.endsWith('-freethreaded')) { if (architecture.endsWith('-freethreaded')) {
throw new Error(`Invalid architecture '${architecture}'. Use 'freethreaded' flag in the python-version (e.g., '3.13.1t') or - freethreaded: true instead of specifying '-freethreaded' in the architecture`); throw new Error(`Invalid architecture '${architecture}'. Use 'freethreaded' flag in the python-version (e.g., '3.13.1t') or use freethreaded: true instead of specifying '-freethreaded' in the architecture`);
} }
core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`); core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);
if (freethreaded) { if (freethreaded) {

View file

@ -51,7 +51,7 @@ export async function useCpythonVersion(
} }
if (architecture.endsWith('-freethreaded')) { if (architecture.endsWith('-freethreaded')) {
throw new Error( throw new Error(
`Invalid architecture '${architecture}'. Use 'freethreaded' flag in the python-version (e.g., '3.13.1t') or - freethreaded: true instead of specifying '-freethreaded' in the architecture` `Invalid architecture '${architecture}'. Use 'freethreaded' flag in the python-version (e.g., '3.13.1t') or use freethreaded: true instead of specifying '-freethreaded' in the architecture`
); );
} }
core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`); core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);