Skip to content

Commit

Permalink
fix highlighting issue (#6584)
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell authored Jan 10, 2025
1 parent d156fd4 commit 110bb75
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 110bb75

Please sign in to comment.