Skip to content

Commit 6423000

Browse files
authored
fix: missing condition for PostgresError: the database system is not yet accepting connections (#36)
1 parent 60de7ed commit 6423000

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/postgres/errors.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export function isPgConnectionError(error: any): string | false {
4141
return 'Postgres connection closed due to administrator command';
4242
} else if (msg.includes('password authentication failed')) {
4343
return 'Postgres authentication failed';
44+
} else if (msg.includes('database system is not yet accepting connections')) {
45+
return 'Postgres not yet accepting connections';
4446
}
4547
}
4648
return false;

0 commit comments

Comments
 (0)