From 87bf761dc2a44a49825ea21ffb293785e5272b5d Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Thu, 4 Mar 2021 18:56:25 -0500 Subject: Properly format matrix errors in spdlog statements --- src/DeviceVerificationFlow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/DeviceVerificationFlow.cpp') 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(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(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(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); }); } -- cgit 1.5.1