From 50b788c286ad8a9aee218a2938b4b3d0ea135a4d Mon Sep 17 00:00:00 2001 From: panticmilos Date: Tue, 21 Jun 2022 14:06:24 +0200 Subject: [PATCH] amend error message --- dist/setup/index.js | 2 +- src/setup-python.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 3c417588f..ed5d36fb2 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -64555,7 +64555,7 @@ function resolveVersionInput() { } versionFile = versionFile || '.python-version'; if (!fs_1.default.existsSync(versionFile)) { - throw new Error(`The specified python version file at: ${versionFile} does not exist`); + throw new Error(`Could not determine Python version to set up. Please either specify a version using python-version in the action configuration, or path to a valid version file using python-version-file. The version file currently in effect, ${versionFile}, does not exist.`); } version = fs_1.default.readFileSync(versionFile, 'utf8'); core.info(`Resolved ${versionFile} as ${version}`); diff --git a/src/setup-python.ts b/src/setup-python.ts index 2ffeb1ade..023be586e 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -39,7 +39,7 @@ function resolveVersionInput(): string { versionFile = versionFile || '.python-version'; if (!fs.existsSync(versionFile)) { throw new Error( - `The specified python version file at: ${versionFile} does not exist` + `Could not determine Python version to set up. Please either specify a version using python-version in the action configuration, or path to a valid version file using python-version-file. The version file currently in effect, ${versionFile}, does not exist.` ); } version = fs.readFileSync(versionFile, 'utf8');