Improve +error.svelte handling

This commit is contained in:
2026-05-16 19:19:31 +01:00
parent b51845528f
commit 07579310b2
4 changed files with 43 additions and 27 deletions

View File

@@ -1,7 +1,6 @@
import { OwlClient, ApiError, ValidationError, ThrowApiError } from '$lib/owlClient';
import type { ApiTrainsTrainByHeadcode } from '@owlboard/owlboard-ts';
import type { PageLoad } from './$types';
import { error } from '@sveltejs/kit';
export const load: PageLoad = async ({ fetch, url }) => {
const headcode = url.searchParams.get('h');