[fractal/fractal-next] verification: Add log msgs on errors



commit 3d25285ac2f5c3c36f0b9fcd8fe3d41c90359c81
Author: Julian Sparber <julian sparber net>
Date:   Tue Jan 18 16:12:10 2022 +0100

    verification: Add log msgs on errors

 src/session/verification/identity_verification.rs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/session/verification/identity_verification.rs 
b/src/session/verification/identity_verification.rs
index 96f97c49..4d4ef19d 100644
--- a/src/session/verification/identity_verification.rs
+++ b/src/session/verification/identity_verification.rs
@@ -413,6 +413,7 @@ impl IdentityVerification {
             {
                 context.start().await
             } else {
+                error!("Unable to start verification handler");
                 Ok(State::Error)
             }
         });
@@ -958,6 +959,7 @@ impl Context {
             if let Ok(qr_code) = request.to_qr_code() {
                 self.send_qr_code(qr_code);
             } else {
+                error!("Unable to generate Qr code for verification");
                 return Ok(State::Error);
             }
 
@@ -1029,6 +1031,7 @@ impl Context {
         } else if let Some(decimal) = request.decimals() {
             SasData::Decimal(decimal)
         } else {
+            error!("Sas verification failed because emoji nor deciaml are supported by the server");
             return Ok(State::Error);
         };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]