title: Prisma failed queries don't return proper errors
body: <p>In my Prisma/express backend, I have this schema:</p>
  <p><code>schema.prisma</code> :</p>
  <pre class="lang-js prettyprint-override"><code>model user {
    id              Int      @id @default(autoincrement())
    name            String
    last_name       String
    role            role     @relation(fields: [role_id], references: [id])
    role_id         Int
    birth_date      DateTime
    created_at      DateTime @default(now())
    updated_at      DateTime @updatedAt
  }
  
  model role {
    id          Int     @id @default(autoincrement())
    description String
    user        user[]
  }
  
  </code></pre>
  <hr />
  <p>When I try to insert data that is not valid(wrong type of data for instance), I get the full error on the console but I can never retrieve it on the code so that I can handle the errors according to error codes that Prisma has on its docs. Whenever I log or return on my requests responses, this is what I get:</p>
  <pre class="lang-json prettyprint-override"><code>{ &quot;clientVersion&quot;: &quot;3.8.1&quot; }
  </code></pre>
  <hr />
  <p>This is where I execute the query that I expected to get the proper error as per the <a href="https://www.prisma.io/docs/reference/api-reference/error-reference" rel="nofollow noreferrer">docs</a>:</p>
  <p><code>user.controller.ts</code> :</p>
  <pre class="lang-js prettyprint-override"><code>import { PrismaClient } from &quot;@prisma/client&quot;;
  import { Request, Response } from &quot;express&quot;;
  
  const mockData = {
      name: &quot;test&quot;,
      last_name: &quot;test_lastname&quot;,
      birth_date: &quot;28/07/1999&quot;, // invalid Date
      role_id: &quot;1&quot; // invalid type, should be Int
  }
  
  module.exports = {
    post: async function (req: Request, res: Response) {
      const prisma: any = new PrismaClient();
      try {
        const result = await prisma.user.create({
          data: mockData,
        });
  
        res.json(result);
      } catch (err) {
        return res.json(err);
      }
    },
  };
  </code></pre>