mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
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:
parent
6801ba9fe8
commit
cc242d9e00
1 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue