From 28a1a1da967d50f5466108e1cd553740529da70f Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 14 Aug 2026 11:20:37 +0200 Subject: [PATCH] chore: don't swallow but log errors in three places helps with debugging failing (flaky) tests --- deltachat-ffi/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 7abd937a8..b3e2ddb86 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -1106,7 +1106,7 @@ pub unsafe extern "C" fn dc_get_webxdc_status_updates( MsgId::new(msg_id), StatusUpdateSerial::new(last_known_serial), )) - .unwrap_or_else(|_| "".to_string()) + .unwrap_or_log_default(ctx, "Failed to get webxdc status updates") .strdup() } @@ -2410,7 +2410,7 @@ pub unsafe extern "C" fn dc_get_securejoin_qr( }; block_on(securejoin::get_securejoin_qr(ctx, chat_id)) - .unwrap_or_else(|_| "".to_string()) + .unwrap_or_log_default(ctx, "Failed to generate securejoin QR code") .strdup() } @@ -2431,7 +2431,7 @@ pub unsafe extern "C" fn dc_get_securejoin_qr_svg( }; block_on(get_securejoin_qr_svg(ctx, chat_id)) - .unwrap_or_else(|_| "".to_string()) + .unwrap_or_log_default(ctx, "Failed to generate securejoin QR code SVG") .strdup() }