MCPcopy Create free account
hub / github.com/AdbAutoPlayer/AdbAutoPlayer / handleError

Function handleError

src/hooks.client.ts:4–13  ·  view source on GitHub ↗
({
  error,
  event,
  status,
  message,
})

Source from the content-addressed store, hash-verified

2import type { HandleClientError } from "@sveltejs/kit";
3
4export const handleError: HandleClientError = async ({
5 error,
6 event,
7 status,
8 message,
9}) => {
10 if (error && status !== 404) {
11 posthog.captureException(error);
12 }
13};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected