(error: SqlError)
| 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 |
no test coverage detected