From 7beccd9dbcad762988f97330d59268ec67675f84 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 1 Dec 2023 04:21:44 +0000 Subject: [PATCH] refactor: better error context in send_webxdc_status_update_struct() --- src/webxdc.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webxdc.rs b/src/webxdc.rs index c3f5d4e4a..d249b539a 100644 --- a/src/webxdc.rs +++ b/src/webxdc.rs @@ -512,8 +512,9 @@ impl Context { send_now, ContactId::SELF, ) - .await? - .context("Failed to create status update")?; + .await + .context("Failed to create status update")? + .context("Duplicate status update UID was generated")?; if send_now { self.sql.insert(