MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / goalErrorMessage

Function goalErrorMessage

apps/kimi-web/src/composables/useKimiWebClient.ts:1077–1081  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

1075};
1076
1077function goalErrorMessage(err: unknown): string | undefined {
1078 if (!isDaemonApiError(err)) return undefined;
1079 const key = GOAL_ERROR_KEYS[err.code];
1080 return key ? i18n.global.t(key) : undefined;
1081}
1082
1083async function handleSessionNotFound(sessionId: string): Promise<void> {
1084 forgetSession(sessionId);

Callers 2

createGoalFunction · 0.85
controlGoalFunction · 0.85

Calls 1

isDaemonApiErrorFunction · 0.90

Tested by

no test coverage detected