diff --git a/dist/setup/index.js b/dist/setup/index.js index 18a06b50..e6a90b60 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -98336,7 +98336,7 @@ async function getManifest() { catch (err) { const message = err instanceof Error ? err.message : String(err); // 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() { diff --git a/src/install-python.ts b/src/install-python.ts index ddd7a5cc..c787def7 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -222,7 +222,8 @@ export async function getManifest(): Promise { const message = err instanceof Error ? err.message : String(err); // 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}` + `Failed to fetch the Python versions manifest. The response was empty, truncated, or invalid, and all retries were exhausted. ${message}`, + {cause: err} ); } }