error page added

This commit is contained in:
Timothy J. Baek 2023-10-17 18:13:40 -07:00
parent 4f9d57c7b0
commit e7b8921a39
2 changed files with 6 additions and 1 deletions

5
src/routes/+error.svelte Normal file
View File

@ -0,0 +1,5 @@
<script>
import { page } from '$app/stores';
</script>
<div>{$page.status}: {$page.error.message}</div>

View File

@ -19,6 +19,6 @@ export const load: PageServerLoad = async ({ url }) => {
}); });
return { return {
models: models models: models ? models.models : []
}; };
}; };