src/client/http_client.rs - H2Client: fix error message in download()

This commit is contained in:
Dietmar Maurer 2019-09-05 13:25:17 +02:00
parent c2a5a9f353
commit 44f59dc731
1 changed files with 2 additions and 4 deletions

View File

@ -1106,9 +1106,7 @@ impl H2Client {
let status = resp.status(); let status = resp.status();
if !status.is_success() { if !status.is_success() {
H2Client::h2api_response(resp) H2Client::h2api_response(resp).await?; // raise error
.map(|_| Err(format_err!("unknown error")))
.await?;
unreachable!(); unreachable!();
} }