Urara-Blog/node_modules/.pnpm-store/v3/files/fc/78879331499f8a276baa002b44bc7a1ef78420742d8e8ee9d67403a3acbac215047a39ac1d18a33f3cd158dc4d19e499c173ff7805be8f66f27185dfcff357
2022-08-14 01:14:53 +08:00

29 lines
618 B
Text

<script context="module">
/** @type {import('@sveltejs/kit').Load} */
export function load({ error, status }) {
return {
props: { error, status }
};
}
</script>
<script>
/** @type {number} */
export let status;
/** @type {Error & {frame?: string} & {loc?: object}} */
export let error;
</script>
<h1>{status}</h1>
<pre>{error.message}</pre>
<!-- TODO figure out what to do with frames/stacktraces in prod -->
<!-- frame is populated by Svelte in its CompileError and is a Rollup/Vite convention -->
{#if error.frame}
<pre>{error.frame}</pre>
{/if}
{#if error.stack}
<pre>{error.stack}</pre>
{/if}