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

Function errorFormatter

app/src/server/api/external/openApiTrpc.ts:74–82  ·  view source on GitHub ↗
({ shape, error })

Source from the content-addressed store, hash-verified

72 .create({
73 transformer: superjson,
74 errorFormatter({ shape, error }) {
75 return {
76 ...shape,
77 data: {
78 ...shape.data,
79 zodError: error.cause instanceof ZodError ? error.cause.flatten() : null,
80 },
81 };
82 },
83 });
84
85export const createOpenApiRouter = t.router;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected