MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / safeDetail

Function safeDetail

packages/node/src/backend/nodeBackendInline.ts:159–162  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

157type PerfSample = Readonly<{ phase: string; durationMs: number }>;
158
159function safeDetail(err: unknown): string {
160 if (err instanceof Error) return `${err.name}: ${err.message}`;
161 return String(err);
162}
163
164// Little-endian u32 magic for bytes "ZREV".
165const ZREV_MAGIC = 0x5645525a;

Callers 4

loadNativeFunction · 0.70
runPollOnceFunction · 0.70
startFunction · 0.70
requestFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected