MCPcopy Create free account
hub / github.com/middleapi/orpc / validateError

Function validateError

packages/server/src/procedure-client.ts:101–107  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

99 const errors = createORPCErrorConstructorMap(procedure['~orpc'].errorMap)
100
101 const validateError = async (e: unknown) => {
102 if (e instanceof ORPCError) {
103 return await validateORPCError(procedure['~orpc'].errorMap, e)
104 }
105
106 return e
107 }
108
109 try {
110 const output = await runWithSpan(

Callers 1

createProcedureClientFunction · 0.85

Calls 1

validateORPCErrorFunction · 0.90

Tested by

no test coverage detected