MCPcopy
hub / github.com/brianc/node-postgres / onError

Method onError

packages/pg-pool/index.js:455–462  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

453
454 let clientReleased = false
455 const onError = (err) => {
456 if (clientReleased) {
457 return
458 }
459 clientReleased = true
460 client.release(err)
461 cb(err)
462 }
463
464 client.once('error', onError)
465 this.log('dispatching query')

Callers

nothing calls this directly

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected