MCPcopy Create free account
hub / github.com/anomalyco/opencode / fail

Function fail

packages/desktop/src/main/server.ts:92–97  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

90 let timeout: NodeJS.Timeout
91
92 const fail = (error: Error) => {
93 if (done) return
94 done = true
95 cleanup()
96 reject(error)
97 }
98
99 const refreshTimeout = () => {
100 clearTimeout(timeout)

Callers 3

refreshTimeoutFunction · 0.70
onMessageFunction · 0.70
onExitFunction · 0.70

Calls 2

cleanupFunction · 0.70
rejectFunction · 0.50

Tested by

no test coverage detected