mirror of
https://github.com/actions/setup-python.git
synced 2025-07-02 07:33:47 +00:00
Fix styling
This commit is contained in:
parent
de50e7576c
commit
63afba950b
2 changed files with 6 additions and 10 deletions
7
dist/setup/index.js
vendored
7
dist/setup/index.js
vendored
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue