MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / handleError

Function handleError

apps/start/src/integrations/trpc/react.ts:8–12  ·  view source on GitHub ↗
(error: TRPCClientErrorBase<any>)

Source from the content-addressed store, hash-verified

6export const { TRPCProvider, useTRPC } = createTRPCContext<AppRouter>();
7
8export function handleError(error: TRPCClientErrorBase<any>) {
9 toast('Error', {
10 description: error.message,
11 });
12}
13
14export function handleErrorToastOptions(options: ExternalToast) {
15 return (error: TRPCClientErrorBase<any>) => {

Callers 1

onErrorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected