MCPcopy
hub / github.com/prisma/prisma / assertAlways

Function assertAlways

packages/internals/src/utils/assertAlways.ts:14–20  ·  view source on GitHub ↗
(condition: unknown, message: string)

Source from the content-addressed store, hash-verified

12 * @param message
13 */
14export function assertAlways(condition: unknown, message: string): asserts condition {
15 if (!condition) {
16 throw new Error(
17 `${message}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`,
18 )
19 }
20}

Callers 1

runCommandMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected