MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / stackOf

Function stackOf

graph-ui/src/provider/error-observer.ts:61–65  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

59
60/** The stack of an unknown thrown value, when it has one. */
61export function stackOf(error: unknown): string | undefined {
62 return error instanceof Error && typeof error.stack === 'string' && error.stack.length > 0
63 ? error.stack
64 : undefined;
65}

Callers 1

announceFailureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected