MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / errorFormatter

Function errorFormatter

app/src/server/api/internal/openApiTrpc.ts:36–44  ·  view source on GitHub ↗
({ shape, error })

Source from the content-addressed store, hash-verified

34 .create({
35 transformer: superjson,
36 errorFormatter({ shape, error }) {
37 return {
38 ...shape,
39 data: {
40 ...shape.data,
41 zodError: error.cause instanceof ZodError ? error.cause.flatten() : null,
42 },
43 };
44 },
45 });
46
47export const createOpenApiRouter = t.router;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected