MCPcopy Create free account
hub / github.com/Effect-TS/effect / onError

Function onError

packages/platform/node/src/NodeHttpServer.ts:123–125  ·  view source on GitHub ↗
(cause: Error)

Source from the content-addressed store, hash-verified

121
122 yield* Effect.callback<void, ServeError>((resume) => {
123 function onError(cause: Error) {
124 resume(Effect.fail(new ServeError({ cause })))
125 }
126 server.on("error", onError)
127 server.listen(options, () => {
128 server.off("error", onError)

Callers

nothing calls this directly

Calls 2

resumeFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected