chore: don't swallow but log errors in three places

helps with debugging failing (flaky) tests
This commit is contained in:
holger krekel
2026-08-14 11:20:37 +02:00
parent 7add59fa76
commit 28a1a1da96

View File

@@ -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()
}