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

Function wrapLikeDrizzle

apps/sim/app/api/table/utils.test.ts:9–11  ·  view source on GitHub ↗

Mimics drizzle's DrizzleQueryError: message is the failed SQL, real error on `cause`.

(cause: Error)

Source from the content-addressed store, hash-verified

7
8/** Mimics drizzle's DrizzleQueryError: message is the failed SQL, real error on `cause`. */
9function wrapLikeDrizzle(cause: Error): Error {
10 return new Error('Failed query: insert into "user_table_rows" ...', { cause })
11}
12
13describe('rootErrorMessage', () => {
14 it('returns the message of a plain error', () => {

Callers 1

utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected