MCPcopy
hub / github.com/prisma/prisma / isWasmPanic

Function isWasmPanic

packages/internals/src/panic.ts:41–43  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

39 * Returns true if the given error is a Wasm panic.
40 */
41export function isWasmPanic(error: Error): error is WasmPanic {
42 return error.name === 'RuntimeError'
43}
44
45export function getWasmError(error: WasmPanic) {
46 const message: string = globalThis.PRISMA_WASM_PANIC_REGISTRY.get()

Callers 5

mergeSchemasFunction · 0.90
validateFunction · 0.90
getConfigFunction · 0.90
runCommandMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected