Files
sveltesociety.dev/.svelte/dev/components/error.svelte
2021-06-24 17:24:42 +02:00

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}