From 8ebdc4526a3469e633a8eedf2a21c8770a5b16fe Mon Sep 17 00:00:00 2001 From: Matthew Little Date: Fri, 21 Mar 2025 18:18:11 +0700 Subject: [PATCH] fix: missing condition for `PostgresError: the database system is not yet accepting connections` --- src/postgres/errors.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/postgres/errors.ts b/src/postgres/errors.ts index b2ff28f..1d7cd43 100644 --- a/src/postgres/errors.ts +++ b/src/postgres/errors.ts @@ -41,6 +41,8 @@ export function isPgConnectionError(error: any): string | false { return 'Postgres connection closed due to administrator command'; } else if (msg.includes('password authentication failed')) { return 'Postgres authentication failed'; + } else if (msg.includes('database system is not yet accepting connections')) { + return 'Postgres not yet accepting connections'; } } return false;