You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/uv/src/commands/python/install.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,10 @@ impl InstallRequest {
47
47
// Make sure the request is a valid download request and fill platform information
48
48
let download_request = PythonDownloadRequest::from_request(&request)
49
49
.ok_or_else(|| {
50
-
anyhow::anyhow!("Cannot download managed Python for request: {request}")
50
+
anyhow::anyhow!(
51
+
"`{}` is not a valid Python download request; see `uv python help` for supported formats and `uv python list --only-downloads` for available versions",
error: Cannot download managed Python for request: executable name `foobar`
494
+
error: `foobar` is not a valid Python download request; see `uv python help` for supported formats and `uv python list --only-downloads` for available versions
error: `foobar` is not a valid Python download request; see `uv python help` for supported formats and `uv python list --only-downloads` for available versions
error: `./foo` is not a valid Python download request; see `uv python help` for supported formats and `uv python list --only-downloads` for available versions
0 commit comments