mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 06:19:58 +08:00
Fix lint issue
This commit is contained in:
parent
f8ae54f808
commit
38387c872e
2 changed files with 3 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
|
@ -98336,7 +98336,7 @@ async function getManifest() {
|
||||||
catch (err) {
|
catch (err) {
|
||||||
const message = err instanceof Error ? err.message : String(err);
|
const message = err instanceof Error ? err.message : String(err);
|
||||||
// Fail loudly so the action doesn't exit 0 without installing Python.
|
// Fail loudly so the action doesn't exit 0 without installing Python.
|
||||||
throw new Error(`Failed to fetch the Python versions manifest. The response was empty, truncated, or invalid, and all retries were exhausted. ${message}`);
|
throw new Error(`Failed to fetch the Python versions manifest. The response was empty, truncated, or invalid, and all retries were exhausted. ${message}`, { cause: err });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function install_python_getManifestFromRepo() {
|
function install_python_getManifestFromRepo() {
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,8 @@ export async function getManifest(): Promise<tc.IToolRelease[]> {
|
||||||
const message = err instanceof Error ? err.message : String(err);
|
const message = err instanceof Error ? err.message : String(err);
|
||||||
// Fail loudly so the action doesn't exit 0 without installing Python.
|
// Fail loudly so the action doesn't exit 0 without installing Python.
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Failed to fetch the Python versions manifest. The response was empty, truncated, or invalid, and all retries were exhausted. ${message}`
|
`Failed to fetch the Python versions manifest. The response was empty, truncated, or invalid, and all retries were exhausted. ${message}`,
|
||||||
|
{cause: err}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue