Issue with the new rust-free prisma query engine with adapter-pg error object format
trying the new prisma rust free engine, we've noticed different error.meta structure! (basic err case of unique constraint violation)
1. why https://github.com/prisma/prisma/blob/423b58507879080bdc1273ca5d30b3de87e5b766/packages/driver-adapter-utils/src/error.ts are not exported?
2. error.message seems not properly crafted, such (check attached)
3. error.meta.target is not there anymore!
GitHub
prisma/packages/driver-adapter-utils/src/error.ts at 423b5850787908...
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - prisma/prisma
2 Replies
You selected to wait for the human sages. They'll share their wisdom soon.
Grab some tea while you wait, or check out
#ask-ai if you'd like a quick chat with the bot anyway!Could you open a GitHub Issue with your observations? Our ORM team should be able to answer your questions and provide insights on the decision of different error meta structure
