MCPcopy Index your code
hub / github.com/brianc/node-postgres / _handleErrorMessage

Method _handleErrorMessage

packages/pg/lib/client.js:421–434  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

419
420 // handle error messages from the postgres backend
421 _handleErrorMessage(msg) {
422 if (this._connecting) {
423 return this._handleErrorWhileConnecting(msg)
424 }
425 const activeQuery = this._getActiveQuery()
426
427 if (!activeQuery) {
428 this._handleErrorEvent(msg)
429 return
430 }
431
432 this._activeQuery = null
433 activeQuery.handleError(msg, this.connection)
434 }
435
436 _handleRowDescription(msg) {
437 const activeQuery = this._getActiveQuery()

Callers

nothing calls this directly

Calls 4

_getActiveQueryMethod · 0.95
_handleErrorEventMethod · 0.95
handleErrorMethod · 0.45

Tested by

no test coverage detected