async_client: Propagate an error properly.

This commit is contained in:
Damir Jelić 2020-02-21 12:13:38 +01:00
parent fbd65fde26
commit 0a74c943ba

View file

@ -149,7 +149,7 @@ impl AsyncClient {
headers.insert(reqwest::header::USER_AGENT, user_agent);
let http_client = http_client.default_headers(headers).build().unwrap();
let http_client = http_client.default_headers(headers).build()?;
Ok(Self {
homeserver,