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

Function warningDetail

apps/kimi-web/src/composables/useKimiWebClient.ts:923–926  ·  view source on GitHub ↗
(labelKey: string, value: unknown)

Source from the content-addressed store, hash-verified

921}
922
923function warningDetail(labelKey: string, value: unknown): AppNoticeDetail | undefined {
924 if (value === undefined || value === null || value === '') return undefined;
925 return { label: i18n.global.t(`warnings.details.${labelKey}`), value: formatDetailValue(value) };
926}
927
928function formatDetailValue(value: unknown): string {
929 if (value instanceof Error) {

Callers 2

onErrorFunction · 0.85
errorDetailsFunction · 0.85

Calls 1

formatDetailValueFunction · 0.85

Tested by

no test coverage detected