mirror of
https://github.com/actions/setup-python.git
synced 2026-08-22 08:23:04 +00:00
Fix lint issue
This commit is contained in:
parent
f8ae54f808
commit
38387c872e
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…
x
Reference in New Issue
Block a user