mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-07 20:57:45 +00:00
22 lines
340 B
Svelte
22 lines
340 B
Svelte
<script context="module">
|
|
export function load({ error, status }) {
|
|
return {
|
|
props: { error, status }
|
|
};
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
export let status;
|
|
export let error;
|
|
</script>
|
|
|
|
<h1>{status}</h1>
|
|
|
|
<p>{error.message}</p>
|
|
|
|
<!-- TODO figure out what to do with stacktraces in prod -->
|
|
{#if error.stack}
|
|
<pre>{error.stack}</pre>
|
|
{/if}
|