Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
31
export
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
wrapAsync
Function · 0.90
wrapSync
Function · 0.90
map
Function · 0.85
flatMap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected