cloudflare-next-intl 0.8.21 → 0.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -134,7 +134,7 @@ export default async function connectToPostgres(config, resolved) {
|
|
|
134
134
|
// expected shape of this event (Hyperdrive/Postgres recycling
|
|
135
135
|
// the connection, not a query failure): swallow it entirely,
|
|
136
136
|
// don't report or log it.
|
|
137
|
-
if (/connection terminated/i.test(error.message))
|
|
137
|
+
if (/(connection terminated|connection closed)/i.test(error.message))
|
|
138
138
|
return;
|
|
139
139
|
void reportError({ errorHandling: config.errorHandling, generate: config.generate }, { error, classOrMethodName: 'db.connectToPostgres.clientError' });
|
|
140
140
|
});
|