mirror of
https://github.com/actions/setup-node.git
synced 2026-02-24 16:02:09 +08:00
error-update
This commit is contained in:
@@ -183,6 +183,13 @@ export default abstract class BaseDistribution {
|
||||
info.downloadUrl
|
||||
);
|
||||
}
|
||||
// Handle network-related issues (e.g., DNS resolution failures)
|
||||
if (err instanceof Error && err.message.includes('getaddrinfo EAI_AGAIN')) {
|
||||
core.error(
|
||||
`Network error: Failed to resolve the server at ${info.downloadUrl}.
|
||||
This could be due to a DNS resolution issue. Please verify the URL or check your network connection.`
|
||||
);
|
||||
}
|
||||
core.error(
|
||||
`Download failed from ${info.downloadUrl}. Please check the URl and try again.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user