mirror of
https://github.com/actions/setup-node.git
synced 2025-02-08 00:03:42 +07:00
error
This commit is contained in:
parent
67032b7211
commit
cc7fac4679
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
@ -100686,10 +100686,14 @@ class OfficialBuilds extends base_distribution_1.default {
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof tc.HTTPError && error.httpStatusCode === 404) {
|
||||
core.warning(`Node version ${this.nodeInfo.versionSpec} for platform ${this.osPlat} and architecture ${this.nodeInfo.arch} was found but failed to download. ` +
|
||||
core.error(`Node version ${this.nodeInfo.versionSpec} for platform ${this.osPlat} and architecture ${this.nodeInfo.arch} was found but failed to download. ` +
|
||||
'This usually happens when downloadable binaries are not fully updated at https://nodejs.org/. ' +
|
||||
'To resolve this issue you may either fall back to the older version or try again later.');
|
||||
}
|
||||
else {
|
||||
// For any other error type, you can log the error message.
|
||||
core.error(`An unexpected error occurred like url might not correct`);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
|
@ -342,11 +342,14 @@ export default class OfficialBuilds extends BaseDistribution {
|
||||
return toolPath;
|
||||
} catch (error) {
|
||||
if (error instanceof tc.HTTPError && error.httpStatusCode === 404) {
|
||||
core.warning(
|
||||
core.error(
|
||||
`Node version ${this.nodeInfo.versionSpec} for platform ${this.osPlat} and architecture ${this.nodeInfo.arch} was found but failed to download. ` +
|
||||
'This usually happens when downloadable binaries are not fully updated at https://nodejs.org/. ' +
|
||||
'To resolve this issue you may either fall back to the older version or try again later.'
|
||||
);
|
||||
} else {
|
||||
// For any other error type, you can log the error message.
|
||||
core.error(`An unexpected error occurred like url might not correct`);
|
||||
}
|
||||
|
||||
throw error;
|
||||
|
Loading…
Reference in New Issue
Block a user