Skip to content

Commit 1ee1ef0

Browse files
committed
Auto merge of #5926 - alexcrichton:more-errors, r=dwijnand
List URL in HTTP download failures Hopefully will help diagnose issues like #5924
2 parents 3bc5260 + 4e62fc8 commit 1ee1ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/sources/registry/remote.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ impl<'cfg> RegistryData for RemoteRegistry<'cfg> {
263263
body.extend_from_slice(buf);
264264
Ok(buf.len())
265265
})?;
266-
handle.perform()?;
266+
handle.perform().chain_err(|| {
267+
format!("failed to download from `{}`", url)
268+
})?;
267269
}
268270
let code = handle.response_code()?;
269271
if code != 200 && code != 0 {

0 commit comments

Comments
 (0)