mirror of
https://github.com/actions/setup-node.git
synced 2025-12-16 10:03:42 +08:00
error for wrong URL
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user