mirror of
https://gitea.com/actions/setup-node.git
synced 2025-08-23 23:43:46 +08:00
Compare commits
4 Commits
node-versi
...
users/eric
Author | SHA1 | Date | |
---|---|---|---|
1c0119c056 | |||
095ab69cb7 | |||
e7b5a7c545 | |||
e37249e03d |
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -10943,7 +10943,7 @@ function downloadTool(url, dest, auth) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Otherwise retry
|
// Otherwise retry
|
||||||
return true;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -10965,6 +10965,7 @@ function downloadToolAttempt(url, dest, auth) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
const response = yield http.get(url, headers);
|
const response = yield http.get(url, headers);
|
||||||
|
throw new HTTPError(500);
|
||||||
if (response.message.statusCode !== 200) {
|
if (response.message.statusCode !== 200) {
|
||||||
const err = new HTTPError(response.message.statusCode);
|
const err = new HTTPError(response.message.statusCode);
|
||||||
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
|
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
|
||||||
|
Reference in New Issue
Block a user