From 568a6a972c0259894abf4010da9d060b05f328aa Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Tue, 28 Apr 2026 13:50:28 +0100 Subject: [PATCH] Expose HumanQrGrantLoginError::Unknown reason in error message --- bindings/matrix-sdk-ffi/CHANGELOG.md | 2 ++ bindings/matrix-sdk-ffi/src/qr_code.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bindings/matrix-sdk-ffi/CHANGELOG.md b/bindings/matrix-sdk-ffi/CHANGELOG.md index 17672fdb695..3ee0a4cb4fe 100644 --- a/bindings/matrix-sdk-ffi/CHANGELOG.md +++ b/bindings/matrix-sdk-ffi/CHANGELOG.md @@ -44,6 +44,8 @@ All notable changes to this project will be documented in this file. ### Features +- Expose `HumanQrGrantLoginError::Unknown` reason in error message. + ([#6514](https://github.com/matrix-org/matrix-rust-sdk/pull/6514)) - Add a list of `declined_by: Vec` to the `TimelineItemContent::RtcNotification`, this will contain the list of users that have declined the call. ([#6494](https://github.com/matrix-org/matrix-rust-sdk/pull/6494)) diff --git a/bindings/matrix-sdk-ffi/src/qr_code.rs b/bindings/matrix-sdk-ffi/src/qr_code.rs index 1fcc497348b..96ffc4cef10 100644 --- a/bindings/matrix-sdk-ffi/src/qr_code.rs +++ b/bindings/matrix-sdk-ffi/src/qr_code.rs @@ -423,7 +423,7 @@ pub enum HumanQrGrantLoginError { NotFound, /// An unknown error has happened. - #[error("An unknown error has happened.")] + #[error("An unknown error has happened: {0}")] Unknown(String), /// The requested device was not returned by the homeserver.