mirror of
https://github.com/Cameri/nostream.git
synced 2025-09-17 19:13:35 +02:00
fix: don't crash when unable to acquire connection
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
@@ -28,8 +28,11 @@ export class AppWorker implements IRunnable {
|
||||
}
|
||||
|
||||
private onError(error: Error) {
|
||||
debug('error: %o', error)
|
||||
throw 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, ')
|
||||
return
|
||||
}
|
||||
console.error('uncaught error:', error)
|
||||
}
|
||||
|
||||
private onExit() {
|
||||
|
Reference in New Issue
Block a user