From 37bdbae640e2fe8eb609c06ca7a5146f17546195 Mon Sep 17 00:00:00 2001 From: Ninja3047 Date: Wed, 27 Jul 2022 12:27:51 -0400 Subject: [PATCH] error context --- web/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 129774b..67813aa 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -177,7 +177,7 @@ pub fn start() { pub fn encrypt_string(data: String) { spawn_local(async move { if let Err(e) = do_encrypt(data.into_bytes()).await { - log!(e.to_string()); + log!(format!("[rs] Error encrypting string: {}", e)); } }); }