mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
refactor(#65): Enhance error logging with context
This commit is contained in:
@@ -35,7 +35,12 @@ export const actions: Actions = {
|
|||||||
})
|
})
|
||||||
.eq('id', session?.user.id);
|
.eq('id', session?.user.id);
|
||||||
|
|
||||||
logger.error(error);
|
if (error) {
|
||||||
|
logger.error('Failed to update user name', {
|
||||||
|
userId: session?.user.id,
|
||||||
|
error
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return fail(500, {
|
return fail(500, {
|
||||||
|
|||||||
Reference in New Issue
Block a user