mirror of
https://github.com/actions/setup-python.git
synced 2025-08-26 18:54:19 +00:00
polished the error message
This commit is contained in:
parent
b26f6d02db
commit
32a58a97ef
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -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) {
|
||||||
|
@ -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}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user