Fix styling

This commit is contained in:
Sergey Dolin 2022-10-20 19:34:00 +02:00
parent de50e7576c
commit 63afba950b
2 changed files with 6 additions and 10 deletions

7
dist/setup/index.js vendored
View file

@ -66763,16 +66763,15 @@ function installCpythonFromRelease(release) {
yield installPython(pythonExtractedFolder);
}
catch (err) {
if (err instanceof Error) {
if (err instanceof tc.HTTPError) {
// Rate limit?
if (err instanceof tc.HTTPError &&
(err.httpStatusCode === 403 || err.httpStatusCode === 429)) {
if (err.httpStatusCode === 403 || err.httpStatusCode === 429) {
core.info(`Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`);
}
else {
core.info(err.message);
}
if (err.stack !== undefined) {
if (err.stack) {
core.debug(err.stack);
}
}