mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 01:01:38 +08:00
adds path to error output
* fix grammar in README & Advance usage docs * update example in action.yml
This commit is contained in:
committed by
GitHub
parent
cc6b809bd0
commit
4e4d3278fa
@@ -93,7 +93,9 @@ function resolveVersionInput(): string {
|
||||
versionFileInput
|
||||
);
|
||||
if (!fs.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.readFileSync(versionFilePath, 'utf8')
|
||||
|
||||
Reference in New Issue
Block a user