3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-25 19:49:33 +01:00
This commit is contained in:
eric sciple 2020-05-18 11:34:49 -04:00
parent e37249e03d
commit e7b5a7c545

1
dist/index.js vendored
View file

@ -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(403);
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})`);