2021-05-14 21:51:14 +02:00
|
|
|
<script context="module">
|
2022-02-10 15:47:44 +01:00
|
|
|
/** @type {import('@sveltejs/kit').ErrorLoad} */
|
2021-05-14 21:51:14 +02:00
|
|
|
export function load({ error, status }) {
|
2022-02-10 15:47:44 +01:00
|
|
|
console.log(error);
|
2021-05-14 21:51:14 +02:00
|
|
|
return {
|
|
|
|
props: {
|
2022-02-10 15:47:44 +01:00
|
|
|
error,
|
|
|
|
status
|
2021-05-14 21:51:14 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
2022-04-02 20:25:24 +02:00
|
|
|
import { t } from '$lib/translations';
|
|
|
|
|
2022-02-10 15:47:44 +01:00
|
|
|
export let status;
|
2021-05-14 21:51:14 +02:00
|
|
|
export let error;
|
|
|
|
</script>
|
|
|
|
|
2022-02-10 15:47:44 +01:00
|
|
|
<div class="mx-auto flex h-screen flex-col items-center justify-center px-4">
|
|
|
|
<div class="pb-10 text-7xl font-bold">{status}</div>
|
2022-04-03 14:14:59 +02:00
|
|
|
<div class="text-3xl font-bold">{$t('error.you_are_lost')}</div>
|
2022-02-10 15:47:44 +01:00
|
|
|
<div class="text-xl">
|
2022-04-02 20:25:24 +02:00
|
|
|
{$t('error.you_can_find_your_way_back')}
|
|
|
|
<a href="/" class="font-bold uppercase text-sky-400">{$t('error.here')}</a>
|
2022-02-10 15:47:44 +01:00
|
|
|
</div>
|
|
|
|
<div class="py-10 text-xs font-bold">
|
|
|
|
<pre
|
|
|
|
class="w-full whitespace-pre-wrap break-words text-left text-xs tracking-tighter">{error.message} {error.stack}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|