Skip to content

fix: internal error when Prisma client runtime error occurs #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

ymc9
Copy link
Member

@ymc9 ymc9 commented Nov 7, 2022

We can't check Prisma's error type against PrismaClientKnownError class because we can't reference generated Prisma classes from the internal package. Use a weakly-typed checking instead.

@vercel
Copy link

vercel bot commented Nov 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
todo-demo ✅ Ready (Inspect) Visit Preview Nov 7, 2022 at 1:58AM (UTC)

@ymc9 ymc9 changed the base branch from main to dev November 7, 2022 01:58
@ymc9 ymc9 merged commit 3e7604d into dev Nov 7, 2022
@ymc9 ymc9 deleted the fix/prisma-error-checking branch November 7, 2022 01:59
@ymc9
Copy link
Member Author

ymc9 commented Nov 7, 2022

#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant