mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 21:53:48 +00:00
npm run format
This commit is contained in:
parent
5d5d8e9b58
commit
87063ef0ad
4 changed files with 16 additions and 15 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -100165,12 +100165,10 @@ class BaseDistribution {
|
|||
catch (err) {
|
||||
if (err instanceof Error &&
|
||||
err.message.includes('getaddrinfo EAI_AGAIN')) {
|
||||
core.setFailed(`Network error: Failed to resolve the server at ${dataUrl}.
|
||||
Please check your DNS settings or verify that the URL is correct.`);
|
||||
core.setFailed(`Network error: Failed to resolve the server at ${dataUrl}.Please check your DNS settings or verify that the URL is correct.`);
|
||||
}
|
||||
else if (err instanceof hc.HttpClientError && err.statusCode === 404) {
|
||||
core.setFailed(`404 Error: Unable to find versions at ${dataUrl}.
|
||||
Please verify that the mirror URL is valid.`);
|
||||
core.setFailed(`404 Error: Unable to find versions at ${dataUrl}.Please verify that the mirror URL is valid.`);
|
||||
}
|
||||
else {
|
||||
core.setFailed(`Failed to fetch Node.js versions from ${dataUrl}.Please check the URL and try again.}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue