summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-03-04 18:56:25 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-03-04 18:56:25 -0500
commit87bf761dc2a44a49825ea21ffb293785e5272b5d (patch)
treed4f2d9e1c2fa9f86e89b00b4942b6d66fbc47226 /src
parentTranslated using Weblate (French) (diff)
downloadnheko-87bf761dc2a44a49825ea21ffb293785e5272b5d.tar.xz
Properly format matrix errors in spdlog statements
Diffstat (limited to 'src')
-rw-r--r--src/Cache.cpp2
-rw-r--r--src/DeviceVerificationFlow.cpp8
-rw-r--r--src/ui/UserProfile.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index dccf1e70..5ec3f32c 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -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; diff --git a/src/DeviceVerificationFlow.cpp b/src/DeviceVerificationFlow.cpp
index c6277a9d..0f0de5a6 100644 --- a/src/DeviceVerificationFlow.cpp +++ b/src/DeviceVerificationFlow.cpp
@@ -45,7 +45,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, user_id, [user_id, this](const UserKeyCache &res, mtx::http::RequestErr err) { 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)); return; } @@ -64,7 +64,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, [this](const UserKeyCache &res, mtx::http::RequestErr err) { 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)); return; } @@ -345,7 +345,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, if (err) { nhlog::net()->error( "failed to upload signatures: {},{}", - err->matrix_error.errcode, + mtx::errors::to_string(err->matrix_error.errcode), static_cast<int>(err->status_code)); } @@ -356,7 +356,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, "id {}: {}, {}", user_id, key_id, - e.errcode, + mtx::errors::to_string(e.errcode), e.error); }); } diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 77f6ced5..311c1314 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp
@@ -159,7 +159,7 @@ UserProfile::fetchDeviceList(const QString &userID) mtx::http::RequestErr err) { 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)); return; } @@ -174,7 +174,7 @@ UserProfile::fetchDeviceList(const QString &userID) 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)); return; }