Alert on live finalize failure
This commit is contained in:
parent
9e4483954f
commit
3e16629a32
|
|
@ -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?.();
|
||||
|
|
|
|||
Loading…
Reference in New Issue