client: error context when building HttpClient

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2020-11-10 11:58:19 +01:00
parent 0c83e8891e
commit f3fde36beb
5 changed files with 25 additions and 21 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ fn mount(
async fn mount_do(param: Value, pipe: Option<RawFd>) -> Result<Value, Error> {
let repo = extract_repository_from_value(&param)?;
let archive_name = tools::required_string_param(&param, "archive-name")?;
let client = connect(repo.host(), repo.port(), repo.auth_id())?;
let client = connect(&repo)?;
let target = param["target"].as_str();