From 32a58a97eff979da28fc9ced8b61b7410152568b Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Thu, 5 Jun 2025 18:36:20 +0530 Subject: [PATCH] polished the error message --- dist/setup/index.js | 2 +- src/find-python.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 7ef5eccc..bf9c072a 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96818,7 +96818,7 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest freethreaded = true; } 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}`); if (freethreaded) { diff --git a/src/find-python.ts b/src/find-python.ts index e15525a0..c6c7b462 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -51,7 +51,7 @@ export async function useCpythonVersion( } 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` + `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}`);