fix(inventar-web): use browser error tracking import in hooks.client.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 18:15:12 +02:00
parent 6801ba9fe8
commit cc242d9e00

View file

@ -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);
};