Properly format matrix errors in spdlog statements

This commit is contained in:
Joseph Donofry 2021-03-04 18:56:25 -05:00
parent 387ba1a1e6
commit 87bf761dc2
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
3 changed files with 7 additions and 7 deletions

View file

@ -3572,7 +3572,7 @@ Cache::query_keys(const std::string &user_id,
if (err) {
nhlog::net()->warn(
"failed to query device keys: {},{}",
err->matrix_error.errcode,
mtx::errors::to_string(err->matrix_error.errcode),
static_cast<int>(err->status_code));
cb({}, err);
return;