Rinze/src/routes/__error.svelte

34 lines
491 B
Svelte
Raw Normal View History

2021-04-28 04:13:36 +00:00
<script context="module">
export function load({ error, status }) {
return {
props: {
status: status,
2021-06-22 12:25:18 +00:00
error: error
}
2021-04-28 04:13:36 +00:00
};
}
</script>
<script>
2022-07-24 16:25:35 +00:00
import Container from '@damillora/plachta/components/Container/Container.svelte';
2021-04-28 04:13:36 +00:00
export let status;
export let error;
</script>
<svelte:head>
<title>{status}</title>
</svelte:head>
2022-07-24 16:25:35 +00:00
<Container>
<h1>{status}</h1>
<p>{error.message}</p>
{#if error.stack}
<pre>{error.stack}</pre>
{/if}
</Container>
2021-04-28 04:13:36 +00:00
2021-06-22 12:25:18 +00:00
<style>
</style>