MCPcopy
hub / github.com/prisma/prisma / handlePanic

Function handlePanic

packages/internals/src/utils/handlePanic.ts:21–27  ·  view source on GitHub ↗
(args: HandlePanic)

Source from the content-addressed store, hash-verified

19}
20
21export async function handlePanic(args: HandlePanic): Promise<void> {
22 if (!canPrompt()) {
23 throw args.error
24 }
25
26 await panicDialog(args)
27}
28
29type PanicDialog = HandlePanic
30

Callers 6

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
internalInitMethod · 0.85

Calls 2

canPromptFunction · 0.90
panicDialogFunction · 0.85

Tested by

no test coverage detected