From 3e16629a32a63bb79866037512543a88f3d66ed1 Mon Sep 17 00:00:00 2001 From: SocioWire Date: Wed, 7 Jan 2026 02:23:54 +0000 Subject: [PATCH] Alert on live finalize failure --- src/components/Live/LiveKitBroadcast.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Live/LiveKitBroadcast.jsx b/src/components/Live/LiveKitBroadcast.jsx index 65fe273..b87098e 100644 --- a/src/components/Live/LiveKitBroadcast.jsx +++ b/src/components/Live/LiveKitBroadcast.jsx @@ -156,8 +156,14 @@ export default function LiveKitBroadcast({ coords, onClose, onStreamCreated }) { if (res.ok && !save) { window.dispatchEvent(new CustomEvent("live-post-deleted", { detail: { post_id: livePostId } })); } + if (!res.ok) { + const errText = await res.text(); + console.error("[LiveKit] Finalize failed:", res.status, errText); + alert("We couldn't save the live post. Please verify your email and try again."); + } } catch (err) { console.error("[LiveKit] Failed to finalize live post:", err); + alert("We couldn't save the live post. Please try again."); } } onClose?.();