We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751e741 commit 95bec69Copy full SHA for 95bec69
packages/pg-pool/index.js
@@ -244,7 +244,7 @@ class Pool extends EventEmitter {
244
// remove the dead client from our list of clients
245
this._clients = this._clients.filter((c) => c !== client)
246
if (timeoutHit) {
247
- err.message = 'Connection terminated due to connection timeout'
+ err = new Error('Connection terminated due to connection timeout', { cause: err })
248
}
249
250
// this client won’t be released, so move on immediately
0 commit comments