From bd5ea8b0f762c4530460ef8b428bcbe81f9e7ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 12 Aug 2022 14:43:16 +0200 Subject: [PATCH] fix(crypto): Fix some error messages --- crates/matrix-sdk-crypto/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk-crypto/src/error.rs b/crates/matrix-sdk-crypto/src/error.rs index 7e7e3d53e..230ea6e1a 100644 --- a/crates/matrix-sdk-crypto/src/error.rs +++ b/crates/matrix-sdk-crypto/src/error.rs @@ -130,13 +130,13 @@ pub enum EventError { #[error( "the sender of the plaintext doesn't match the sender of the encrypted \ - message, got {0}, expected {0}" + message, got {0}, expected {1}" )] MismatchedSender(OwnedUserId, OwnedUserId), #[error( "the public that was part of the message doesn't match to the key we \ - have stored, expected {0}, got {0}" + have stored, expected {0}, got {1}" )] MismatchedKeys(Box, Box),