mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 21:29:49 +00:00
Remove Cargo-specific error messages (#1306)
We're leveraging Cargo's git implementation, but we left in some Cargo-specific error messages for features we don't yet support.
This commit is contained in:
parent
9808c6b500
commit
e4fffc15f5
1 changed files with 1 additions and 11 deletions
|
|
@ -798,9 +798,6 @@ where
|
|||
);
|
||||
}
|
||||
}
|
||||
msg.push_str("\n\n");
|
||||
msg.push_str("if the git CLI succeeds then `net.git-fetch-with-cli` may help here\n");
|
||||
msg.push_str("https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli");
|
||||
err = err.context(msg);
|
||||
|
||||
// Otherwise if we didn't even get to the authentication phase them we may
|
||||
|
|
@ -814,14 +811,7 @@ where
|
|||
| ErrorClass::FetchHead
|
||||
| ErrorClass::Ssh
|
||||
| ErrorClass::Http => {
|
||||
let mut msg = "network failure seems to have happened\n".to_string();
|
||||
msg.push_str(
|
||||
"if a proxy or similar is necessary `net.git-fetch-with-cli` may help here\n",
|
||||
);
|
||||
msg.push_str(
|
||||
"https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli",
|
||||
);
|
||||
err = err.context(msg);
|
||||
err = err.context("failed to connect to the repository");
|
||||
}
|
||||
ErrorClass::Callback => {
|
||||
// This unwraps the git2 error. We're using the callback error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue