From a01bf924cfcee654d7a181f9d864257b3a292ba3 Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:16:17 -0600 Subject: [PATCH] fix highlighting issue --- .../20-relations/410-referential-actions/index.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx b/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx index 32b737803f..2e0d6ccc7f 100644 --- a/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx +++ b/content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx @@ -398,7 +398,7 @@ The following example would result in a cascading delete, if the `User` is delet #### A blog schema example -```prisma highlight=4;add showLineNumbers +```prisma showLineNumbers model Post { id Int @id @default(autoincrement()) title String @@ -504,7 +504,9 @@ async function main() { }) } catch (error) { if (error instanceof Prisma.PrismaClientKnownRequestError) { + //delete-next-line if (error.code === 'P2014') { + //add-next-line if (error.code === 'P2003') { console.log(error.message) }