MCPcopy Create free account
hub / github.com/porsager/postgres / ErrorResponse

Function ErrorResponse

cjs/src/connection.js:812–819  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

810 }
811
812 function ErrorResponse(x) {
813 if (query) {
814 (query.cursorFn || query.describeFirst) && write(Sync)
815 errorResponse = Errors.postgres(parseError(x))
816 } else {
817 errored(Errors.postgres(parseError(x)))
818 }
819 }
820
821 function retry(q, error) {
822 delete statements[q.signature]

Callers

nothing calls this directly

Calls 3

writeFunction · 0.70
parseErrorFunction · 0.70
erroredFunction · 0.70

Tested by

no test coverage detected