Alert on live finalize failure

This commit is contained in:
SocioWire 2026-01-07 02:23:54 +00:00
parent 9e4483954f
commit 3e16629a32
1 changed files with 6 additions and 0 deletions

View File

@ -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?.();