Fail setup when activated Python runtime detection fails

This commit is contained in:
William Woodruff
2026-09-03 15:48:24 -04:00
parent 18b7c1ee5f
commit 358b824344
6 changed files with 34 additions and 30 deletions
Generated Vendored
+3 -3
View File
@@ -102116,10 +102116,10 @@ async function getPythonRuntimeId(inputs) {
);
return formatRuntimeId(JSON.parse(stdout));
} catch (error2) {
debug(
`Failed to identify the activated environment's Python runtime. Error: ${error2 instanceof Error ? error2.message : String(error2)}`
throw new Error(
`Failed to identify the activated environment's Python runtime: ${error2 instanceof Error ? error2.message : String(error2)}`,
{ cause: error2 }
);
return "";
}
}