Skip to content

Commit

Permalink
Fix error typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattico committed Aug 3, 2017
1 parent da604a9 commit 2d87a86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/download/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ pub mod reqwest_be {
.map(|(addr, port)| {
String::from(format!("{}:{}", addr, port))
});

let client = match url.scheme() {
"https" => match maybe_proxy {
None => Client::new()?,
Expand Down Expand Up @@ -280,7 +281,7 @@ pub mod reqwest_be {
.send()
} else {
client.get(url.clone())?.send()
}.chain_err(|| "failed to make network reqwest")?;
}.chain_err(|| "failed to make network request")?;

if !res.status().is_success() {
let code: u16 = res.status().into();
Expand Down

0 comments on commit 2d87a86

Please sign in to comment.