MCPcopy
hub / github.com/langgenius/dify / mapOrpcError

Function mapOrpcError

cli/src/http/orpc.ts:37–41  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

35// Non-2xx and transport failures already arrive as BaseError (from the fetch wrapper / transport)
36// and re-throw unchanged; the only residual is a 2xx body oRPC failed to decode.
37function mapOrpcError(err: unknown): never {
38 if (isBaseError(err))
39 throw err
40 throw unknownError(err instanceof Error ? err.message : String(err), err)
41}

Callers

nothing calls this directly

Calls 2

isBaseErrorFunction · 0.90
unknownErrorFunction · 0.90

Tested by

no test coverage detected