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

Function failFatal

packages/sql/pg/src/PgConnection.ts:2149–2152  ·  view source on GitHub ↗
(error: SqlError)

Source from the content-addressed store, hash-verified

2147 // `conn.fatal` notifies the registered consumer; the direct `onFatal` call
2148 // covers the case where the connection was already dead.
2149 const failFatal = (error: SqlError): void => {
2150 conn.fatal(error)
2151 onFatal(error)
2152 }
2153 const failDesync = (message: string): void =>
2154 failFatal(connectionQueryError(new Error(message), `PgConnection: ${message}`))
2155

Callers 3

failDesyncFunction · 0.85
onMessageFunction · 0.85
streamRowsFunction · 0.85

Calls 2

onFatalFunction · 0.85
fatalMethod · 0.80

Tested by

no test coverage detected