error-update
parent
07434d7eed
commit
e10de1c4d7
|
@ -100215,6 +100215,11 @@ class BaseDistribution {
|
||||||
this.osPlat == 'win32') {
|
this.osPlat == 'win32') {
|
||||||
return yield this.acquireWindowsNodeFromFallbackLocation(info.resolvedVersion, info.arch, info.downloadUrl);
|
return yield this.acquireWindowsNodeFromFallbackLocation(info.resolvedVersion, info.arch, 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.`);
|
core.error(`Download failed from ${info.downloadUrl}. Please check the URl and try again.`);
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,6 +182,13 @@ export default abstract class BaseDistribution {
|
||||||
info.arch,
|
info.arch,
|
||||||
info.downloadUrl
|
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(
|
core.error(
|
||||||
`Download failed from ${info.downloadUrl}. Please check the URl and try again.`
|
`Download failed from ${info.downloadUrl}. Please check the URl and try again.`
|
||||||
|
|
Loading…
Reference in New Issue