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

Function readError

packages/pg-native/lib/copy-stream.js:119–122  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

117 }
118
119 const readError = function (message) {
120 cleanup()
121 return cb(new Error(message || pq.errorMessage()))
122 }
123
124 const onReadable = function () {
125 // read waiting data from the socket

Callers 1

onReadableFunction · 0.85

Calls 2

cleanupFunction · 0.85
cbFunction · 0.85

Tested by

no test coverage detected