add more strapi shit
This commit is contained in:
parent
18bde0daca
commit
6fa049504b
24 changed files with 595 additions and 62 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { logger } from '$lib/server/logger';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
|
|
@ -25,7 +26,9 @@ export const load: PageServerLoad = async ({ locals }) => {
|
|||
meta
|
||||
};
|
||||
} catch (err) {
|
||||
console.log('Uh-oh!');
|
||||
error(500, err.message);
|
||||
logger.error('Uh-oh!', err);
|
||||
if (err instanceof Error) {
|
||||
error(500, err);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue