MCPcopy
hub / github.com/prisma/prisma / getWasmError

Function getWasmError

packages/internals/src/panic.ts:45–50  ·  view source on GitHub ↗
(error: WasmPanic)

Source from the content-addressed store, hash-verified

43}
44
45export function getWasmError(error: WasmPanic) {
46 const message: string = globalThis.PRISMA_WASM_PANIC_REGISTRY.get()
47 const stack = [message, ...(error.stack || 'NO_BACKTRACE').split('\n').slice(1)].join('\n')
48
49 return { message, stack }
50}

Callers 7

handleLintPanicFunction · 0.90
mergeSchemasFunction · 0.90
handleFormatPanicFunction · 0.90
validateFunction · 0.90
getConfigFunction · 0.90
runCommandMethod · 0.90

Calls 2

getMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected