We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a5e5b3 commit 5bfababCopy full SHA for 5bfabab
crates/uv/src/bin/uvx.rs
@@ -38,6 +38,14 @@ fn run() -> std::io::Result<ExitStatus> {
38
.chain(std::env::args_os().skip(1))
39
.collect::<Vec<_>>();
40
41
+ // If we are sure the uv binary does not exist, display a clearer error message
42
+ if matches!(uv.try_exists(), Ok(false)) {
43
+ return Err(std::io::Error::new(
44
+ std::io::ErrorKind::NotFound,
45
+ format!("Could not find the `uv` binary at: {}", uv.display()),
46
+ ));
47
+ }
48
+
49
let mut cmd = Command::new(uv);
50
cmd.args(&args);
51
match exec_spawn(&mut cmd)? {}
0 commit comments