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

Function throwIfError

packages/pg-native/index.js:262–267  ·  view source on GitHub ↗
(pq)

Source from the content-addressed store, hash-verified

260}
261
262const throwIfError = function (pq) {
263 const err = pq.resultErrorMessage() || pq.errorMessage()
264 if (err) {
265 throw new Error(err)
266 }
267}
268
269Client.prototype._awaitResult = function (cb) {
270 this._queryCallback = cb

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…