mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01: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:
parent
26ae58cc76
commit
a519f4f36d
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user