MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / fail

Function fail

scripts/dev-web.ts:87–93  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

85 let settled = false
86
87 const fail = (error: Error) => {
88 if (settled) {
89 return
90 }
91 settled = true
92 reject(error)
93 }
94
95 child.once('error', fail)
96 child.once('exit', (code, signal) => {

Callers 1

startDevWebBridgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected