MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / sendError

Function sendError

projects/electron/src/modules/code/process.ts:288–300  ·  view source on GitHub ↗

* Send error event to renderer

(processId: string, error: string)

Source from the content-addressed store, hash-verified

286 * Send error event to renderer
287 */
288function sendError(processId: string, error: string): void {
289 const proc = activeProcesses.get(processId)
290 if (!proc) return
291
292 proc.completed = true
293 proc.completedAt = Date.now()
294 proc.error = error
295
296 emitLifecycle({ type: "error", processId, error })
297
298 // Schedule cleanup
299 scheduleCleanup(processId)
300}
301
302/**
303 * Setup process event handlers

Callers 1

setupProcessHandlersFunction · 0.70

Calls 3

emitLifecycleFunction · 0.70
scheduleCleanupFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected