fix: acq conn recommendation

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
Ricardo Arturo Cabral Mejía 2023-01-17 19:25:31 -05:00
parent 5fb8c76a17
commit 0d530699a0

View File

@ -29,7 +29,9 @@ export class AppWorker implements IRunnable {
private onError(error: Error) {
if (error.name === 'TypeError' && error.message === "Cannot read properties of undefined (reading '__knexUid')") {
console.error('Unable to acquire connection. Please increase DB_MAX_POOL_SIZE, ')
console.error(
'Unable to acquire connection. Please increase DB_MAX_POOL_SIZE, DB_ACQUIRE_CONNECTION_TIMEOUT and tune postgresql.conf to make use of server\'s resources.'
)
return
}
console.error('uncaught error:', error)