MCPcopy Create free account
hub / github.com/tiann/hapi / formatSpawnError

Function formatSpawnError

cli/src/runner/run.ts:205–210  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

203 };
204 let reportSpawnOutcomeToHub: ((outcome: { type: 'success' } | { type: 'error'; details: SpawnFailureDetails }) => void) | null = null;
205 const formatSpawnError = (error: unknown): string => {
206 if (error instanceof Error) {
207 return error.message;
208 }
209 return String(error);
210 };
211
212 // Helper functions
213 const getCurrentChildren = () => Array.from(pidToTrackedSession.values());

Callers 1

spawnSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected