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

Function fallbackORPCErrorMessage

packages/client/src/error.ts:93–95  ·  view source on GitHub ↗
(code: ORPCErrorCode, message: string | undefined)

Source from the content-addressed store, hash-verified

91}
92
93export function fallbackORPCErrorMessage(code: ORPCErrorCode, message: string | undefined): string {
94 return message || (COMMON_ORPC_ERROR_DEFS as any)[code]?.message || code
95}
96
97export type ORPCErrorOptions<TData>
98 = & ErrorOptions

Callers 3

error.test.tsFile · 0.90
#errorResponseMethod · 0.90
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected