MCPcopy Create free account
hub / github.com/QuantumNous/new-api / getServerErrorMessageKey

Function getServerErrorMessageKey

web/src/lib/server-error-message.ts:51–60  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

49}
50
51export function getServerErrorMessageKey(value: unknown): string | null {
52 const payload = serverErrorPayload(value)
53 if (!payload || typeof payload.code !== 'string') return null
54
55 return (
56 serverErrorMessageKeys[
57 payload.code as keyof typeof serverErrorMessageKeys
58 ] ?? null
59 )
60}

Callers 10

OAuthCallbackFunction · 0.90
OAuthComponentFunction · 0.90
handleServerErrorFunction · 0.90
http-client.tsFile · 0.90
handleWeChatLoginFunction · 0.90
onSubmitFunction · 0.90
handleWeChatLoginFunction · 0.90
handlePasskeyLoginFunction · 0.90
handleBindResultFunction · 0.90

Calls 1

serverErrorPayloadFunction · 0.85

Tested by

no test coverage detected