diff --git a/src/hooks.client.ts b/src/hooks.client.ts new file mode 100644 index 00000000..30ce35d1 --- /dev/null +++ b/src/hooks.client.ts @@ -0,0 +1,5 @@ +export function handleError({ error, event }) { + return { + message: error as any, + } +} diff --git a/src/lib/components/ui/toasts/Toast.svelte b/src/lib/components/ui/toasts/Toast.svelte index 2f7ce0e0..e7c4ca4c 100644 --- a/src/lib/components/ui/toasts/Toast.svelte +++ b/src/lib/components/ui/toasts/Toast.svelte @@ -49,24 +49,25 @@ {/if}
{toast.content}
- - {#if toast.action} +Failed to fetch that page. Is it missing?
+Failed to fetch that page.
{$page.error?.message}
- It's likely that this community hasn't been federated (nobody on your - instance has subscribed to it yet.) -
- -