From cc242d9e0014d064fae48fa539aa628520ec5675 Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 31 Mar 2026 18:15:12 +0200 Subject: [PATCH] fix(inventar-web): use browser error tracking import in hooks.client.ts Co-Authored-By: Claude Opus 4.6 --- apps/inventar/apps/web/src/hooks.client.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); };