mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 22:23:47 +00:00
error for wrong URL
This commit is contained in:
parent
35af15253e
commit
5809c5dc63
2 changed files with 5 additions and 0 deletions
|
@ -211,6 +211,8 @@ export default abstract class BaseDistribution {
|
|||
libUrl = `${initialUrl}/v${version}/win-${osArch}/node.lib`;
|
||||
|
||||
core.info(`Downloading only node binary from ${exeUrl}`);
|
||||
if(!exeUrl ){core.error('unable to download node binary with the provided URL. Please check and try again');}
|
||||
|
||||
|
||||
const exePath = await tc.downloadTool(exeUrl);
|
||||
await io.cp(exePath, path.join(tempDir, 'node.exe'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue