MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getErrorCode

Function getErrorCode

packages/engine/src/services/systemMemory.ts:116–122  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

114}
115
116function getErrorCode(error: unknown): string | undefined {
117 if (typeof error !== "object" || error === null || !("code" in error)) {
118 return undefined;
119 }
120
121 return typeof error.code === "string" ? error.code : undefined;
122}
123
124function formatCgroupReadError(error: unknown): string {
125 const message = error instanceof Error ? error.message : String(error);

Callers 2

readCgroupFileFunction · 0.85
formatCgroupReadErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected