Add some more error logging

This commit is contained in:
Nicolas Werner 2023-01-09 02:06:49 +01:00
parent 1d4b5e40a3
commit b84bc7895e
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 18 additions and 26 deletions

View file

@ -1381,9 +1381,7 @@ ChatPage::decryptDownloadedSecrets(mtx::secret_storage::AesHmacSha2KeyDescriptio
http::client()->keys_signatures_upload(
req, [](const mtx::responses::KeySignaturesUpload &res, mtx::http::RequestErr err) {
if (err) {
nhlog::net()->error("failed to upload signatures: {},{}",
mtx::errors::to_string(err->matrix_error.errcode),
static_cast<int>(err->status_code));
nhlog::net()->error("failed to upload signatures: {}", *err);
}
for (const auto &[user_id, tmp] : res.errors)