mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-09-04 06:39:22 +00:00
Fail setup when activated Python runtime detection fails
This commit is contained in:
+3
-3
@@ -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 "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user