diff --git a/apps/inventar/apps/web/src/hooks.client.ts b/apps/inventar/apps/web/src/hooks.client.ts index 613945c81..189bd8cd2 100644 --- a/apps/inventar/apps/web/src/hooks.client.ts +++ b/apps/inventar/apps/web/src/hooks.client.ts @@ -1,12 +1,10 @@ import type { HandleClientError } from '@sveltejs/kit'; -import { initErrorTracking, createErrorHandler } from '@manacore/shared-error-tracking'; +import { initErrorTracking, handleSvelteError } from '@manacore/shared-error-tracking/browser'; initErrorTracking({ serviceName: 'inventar-web', }); -const errorHandler = createErrorHandler('inventar-web'); - -export const handleError: HandleClientError = ({ error, event }) => { - errorHandler(error, { url: event.url.pathname }); +export const handleError: HandleClientError = ({ error }) => { + handleSvelteError(error); };