mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-09 05:31:11 +00:00
adds path to error output
* fix grammar in README & Advance usage docs * update example in action.yml
This commit is contained in:
parent
cc6b809bd0
commit
4e4d3278fa
6 changed files with 12 additions and 11 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -7014,7 +7014,7 @@ function resolveVersionInput() {
|
|||
if (versionFileInput) {
|
||||
const versionFilePath = path.join(process.env.GITHUB_WORKSPACE, versionFileInput);
|
||||
if (!fs_1.default.existsSync(versionFilePath)) {
|
||||
throw new Error('The specified node version file does not exist');
|
||||
throw new Error(`The specified node version file at: ${versionFilePath} does not exist`);
|
||||
}
|
||||
version = installer.parseNodeVersionFile(fs_1.default.readFileSync(versionFilePath, 'utf8'));
|
||||
core.info(`Resolved ${versionFileInput} as ${version}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue