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

Function failAuth

packages/sql/pg/src/PgConnection.ts:2462–2463  ·  view source on GitHub ↗
(cause: unknown, message: string)

Source from the content-addressed store, hash-verified

2460 const failConnect = (cause: unknown, message: string, type: ConnectFailureType = "other"): void =>
2461 fail(new ConnectionError({ cause, message, operation: "connect" }), type)
2462 const failAuth = (cause: unknown, message: string): void =>
2463 fail(new AuthenticationError({ cause, message, operation: "connect" }), "auth")
2464 const failErrorResponse = (fields: PgProtocol.ErrorFields, message: string): void => {
2465 const reason = classifyFields(fields, message, "connect")
2466 const code = fields.code

Callers 2

passwordFunction · 0.85
handleMessageFunction · 0.85

Calls 1

failFunction · 0.70

Tested by

no test coverage detected