MCPcopy Index your code
hub / github.com/simstudioai/sim / wrappedPgError

Function wrappedPgError

apps/realtime/src/database/preflight.test.ts:43–45  ·  view source on GitHub ↗

Mirrors how drizzle wraps the driver error: the SQLSTATE lives on `cause`, not the outer error.

(code: string)

Source from the content-addressed store, hash-verified

41
42/** Mirrors how drizzle wraps the driver error: the SQLSTATE lives on `cause`, not the outer error. */
43function wrappedPgError(code: string): Error {
44 return new Error('Failed query', { cause: pgError(code) })
45}
46
47describe('assertSchemaCompatibility', () => {
48 beforeEach(() => {

Callers 1

preflight.test.tsFile · 0.85

Calls 1

pgErrorFunction · 0.85

Tested by

no test coverage detected