pull/16171/head
Rich Harris 2 months ago
parent c0ade24eb9
commit d78ab67f85

@ -330,7 +330,7 @@ This `reset` function should only be called once. After that, it has no effect
<button onclick={reset}>reset</button>
<svelte:boundary onerror={(e, r) => (reset = r)}>
<!-- contents >
<!-- contents -->
{#snippet failed(e)}
<p>oops! {e.message}</p>

@ -288,7 +288,7 @@ This `reset` function should only be called once. After that, it has no effect
<button onclick={reset}>reset</button>
<svelte:boundary onerror={(e, r) => (reset = r)}>
<!-- contents >
<!-- contents -->
{#snippet failed(e)}
<p>oops! {e.message}</p>

@ -434,6 +434,7 @@ export function svelte_boundary_reset_onerror() {
const error = new Error(`svelte_boundary_reset_onerror\nA \`<svelte:boundary>\` \`reset\` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror`);
error.name = 'Svelte error';
throw error;
} else {
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);

Loading…
Cancel
Save