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

Function fail

packages/agent-core/src/config/env-model.ts:37–39  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

35}
36
37function fail(message: string): never {
38 throw new KimiError(ErrorCodes.CONFIG_INVALID, message);
39}
40
41function parsePositiveInt(raw: string, varName: string): number {
42 if (!/^\d+$/.test(raw) || Number(raw) <= 0) {

Callers 4

parsePositiveIntFunction · 0.70
parseProviderTypeFunction · 0.70
parseBooleanVarFunction · 0.70
applyEnvModelConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected