From e4fffc15f5c467e851267a85309496cb0907d45e Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 15 Feb 2024 01:04:22 -0500 Subject: [PATCH] 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. --- crates/puffin-git/src/git.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/puffin-git/src/git.rs b/crates/puffin-git/src/git.rs index 84ed8f97a..0a94803e6 100644 --- a/crates/puffin-git/src/git.rs +++ b/crates/puffin-git/src/git.rs @@ -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