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/ui/UserProfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/UserProfile.cpp') 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(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(err->status_code)); return; } -- cgit 1.5.1