style: Include errors in key claim response too
This commit is contained in:
parent
bc426e1bfc
commit
56d7099011
1 changed files with 2 additions and 3 deletions
|
|
@ -589,7 +589,6 @@ where
|
|||
device_keys.extend(response.device_keys);
|
||||
},
|
||||
| Err(e) => {
|
||||
// Extra branch is needed because Elapsed != Error (types)
|
||||
failures.insert(server.to_string(), json!({ "error": e.to_string() }));
|
||||
},
|
||||
}
|
||||
|
|
@ -697,8 +696,8 @@ pub(crate) async fn claim_keys_helper(
|
|||
| Ok(keys) => {
|
||||
one_time_keys.extend(keys.one_time_keys);
|
||||
},
|
||||
| Err(_e) => {
|
||||
failures.insert(server.to_string(), json!({}));
|
||||
| Err(e) => {
|
||||
failures.insert(server.to_string(), json!({"error": e.to_string()}));
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue