MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / formatBoundaryError

Function formatBoundaryError

packages/hosts/mcp/src/tool-server.ts:545–550  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

543 };
544
545const formatBoundaryError = (err: unknown): { name?: string; message: string; stack?: string } => {
546 // oxlint-disable-next-line executor/no-instanceof-error, executor/no-unknown-error-message -- boundary: SDK Promise rejection supplies unknown JS errors for logging only
547 if (err instanceof Error) return { name: err.name, message: err.message, stack: err.stack };
548 // oxlint-disable-next-line executor/no-unknown-error-message -- boundary: fallback log formatting for unknown SDK Promise rejection values
549 return { message: String(err) };
550};
551
552// ---------------------------------------------------------------------------
553// MCP result formatting

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected