prisma / studio

🎙️ The easiest way to explore and manipulate your data in all of your Prisma projects.
https://www.prisma.io/studio
1.87k stars 48 forks source link

"Prisma Client Error" modal shows minified code before actual error #1251

Closed janpio closed 3 months ago

janpio commented 3 months ago

Some time ago the "Prisma Client Error" modal started showing minified Prisma Client code before the actual error, making it very hard for users to understand what is going on.

Example for running npx prisma studio for a schema that refers to a SQLite database that is missing the table for a model User:

What one sees first: image

The actual error, quite hidden: image

What one sees when scrolling fully down, also not showing the error: image

Affected issues

This affects reported issues all the time, making the screenshots useless to debug the actual problem:

https://github.com/prisma/studio/issues/1197

janpio commented 3 months ago

Duplicate of: https://github.com/prisma/prisma/issues/22492

fzn0x commented 3 months ago

Thanks for improving it 💘