src/client/http_client.rs - H2Client: fix error message in download()
This commit is contained in:
		@ -1106,10 +1106,8 @@ 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")))
 | 
					            unreachable!();
 | 
				
			||||||
                .await?;
 | 
					 | 
				
			||||||
                unreachable!();
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let mut body = resp.into_body();
 | 
					        let mut body = resp.into_body();
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user