Skip to content

Scheduling infrastructure for absolutely everyone.

Prisma errors can't be handled on client

zomarse0a391d46e45
diff --git a/packages/lib/errors.ts b/packages/lib/errors.ts
index d8731d34211..c6731699be1 100644
--- a/packages/lib/errors.ts
+++ b/packages/lib/errors.ts
@@ -1,9 +1,4 @@
-import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
-
export function getErrorFromUnknown(cause: unknown): Error & { statusCode?: number; code?: string } {
- if (cause instanceof PrismaClientKnownRequestError) {
- return cause;
- }
if (cause instanceof Error) {
return cause;
}