mirror of
https://github.com/Cameri/nostream.git
synced 2025-08-08 20:21:49 +02:00
fix: acq conn recommendation
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
@@ -29,7 +29,9 @@ export class AppWorker implements IRunnable {
|
|||||||
|
|
||||||
private onError(error: Error) {
|
private onError(error: Error) {
|
||||||
if (error.name === 'TypeError' && error.message === "Cannot read properties of undefined (reading '__knexUid')") {
|
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
|
return
|
||||||
}
|
}
|
||||||
console.error('uncaught error:', error)
|
console.error('uncaught error:', error)
|
||||||
|
Reference in New Issue
Block a user