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

Function onError

packages/sql/pg/src/PgConnection.ts:2474–2474  ·  view source on GitHub ↗
(cause: Error)

Source from the content-addressed store, hash-verified

2472 }
2473
2474 const onError = (cause: Error) => failConnect(cause, "PgConnection: Failed to connect", "refused")
2475 const onClose = () =>
2476 failConnect(
2477 new Error("Connection closed unexpectedly"),

Callers 2

Alert.test.tsFile · 0.50
Share.test.tsFile · 0.50

Calls 1

failConnectFunction · 0.85

Tested by

no test coverage detected