Debian Codegraph @

frontend/src/reports/ReportLoadError.svelte

raw
1 <script lang="ts">
2 import { errorWithCauses } from "../lib/errors";
3
4 interface Props {
5 title: string;
6 error: Error;
7 }
8
9 let { title, error }: Props = $props();
10 </script>
11
12 <h2>Loading {title} failed with error:</h2>
13
14 <pre>{errorWithCauses(error)}</pre>
15
16 <style>
17 pre {
18 color: var(--error);
19 }
20 </style>