use core::GitReference;
use util::{ToUrl, internal, Config, network, Progress};
-use util::errors::{CargoResult, CargoResultExt, Internal};
+use util::errors::{CargoResult, CargoResultExt, CargoError};
#[derive(PartialEq, Clone, Debug)]
pub struct GitRevision(git2::Oid);
// In the case of an authentication failure (where we tried something) then
// we try to give a more helpful error message about precisely what we
// tried.
- let res = res.map_err(Internal::new).chain_err(|| {
+ let res = res.map_err(CargoError::from).chain_err(|| {
let mut msg = "failed to authenticate when downloading \
repository".to_string();
if !ssh_agent_attempts.is_empty() {
failed to authenticate when downloading repository
attempted to find username/password via `credential.helper`, but [..]
-To learn more, run the command again with --verbose.
+Caused by:
+ curl error: Failed to connect to 127.0.0.1 port [..]: Connection refused
+; class=Net (12)
",
addr = addr)));