diff --git a/src/Cache.cpp b/src/Cache.cpp index dccf1e702de83860929a5740a43053be786ccdbe..5ec3f32cc4e5a506d0f49b19d04b834486476bed 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 c6277a9d320fcdf012165a5a3d5fec3e8a8f720c..0f0de5a679583bc80fdfd487082d43d64ae58e91 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 77f6ced5211f04d5da672905634e7c821dc22898..311c13146e2c20e160177132bc192fc97ab6e654 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; }