mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-08 12:28:20 +02:00
polished the error message
This commit is contained in:
parent
b26f6d02db
commit
32a58a97ef
2 changed files with 2 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue