MCPcopy
hub / github.com/prisma/prisma / err

Function err

packages/driver-adapter-utils/src/result.ts:31–42  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

29}
30
31export function err<T>(error: Error): Result<T> {
32 return {
33 ok: false,
34 error,
35 map() {
36 return err(error)
37 },
38 flatMap() {
39 return err(error)
40 },
41 }
42}

Callers 4

wrapAsyncFunction · 0.90
wrapSyncFunction · 0.90
mapFunction · 0.85
flatMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected