MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / errorCode

Function errorCode

scripts/web-env/shared.ts:48–50  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

46}
47
48function stringValue(record: JsonRecord, key: string): string | undefined {
49 return typeof record[key] === 'string' ? record[key] : undefined;
50}
51
52function errorCode(error: unknown): string | undefined {
53 return isRecord(error) && typeof error.code === 'string' ? error.code : undefined;

Callers 1

runFunction · 0.70

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected