Skip to content
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

Recognize known errors during commit and do not error out fatally #544

Open
sdnts opened this issue Sep 14, 2020 · 0 comments
Open

Recognize known errors during commit and do not error out fatally #544

sdnts opened this issue Sep 14, 2020 · 0 comments
Labels
kind/improvement An improvement to existing feature and code.

Comments

@sdnts
Copy link
Contributor

sdnts commented Sep 14, 2020

Currently, any and all errors that originate when you Save Changes back to your DB are considered fatal, and require you to either refresh the page, or discard all your changes and reset. This is far from ideal. This also includes user errors (like constraint failures)

If we can recognize certain errors from Prisma Client's error codes, we can show suitable error messages and not fail fatally, allowing people to correct their entry.

Error docs: https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/error-reference

@sdnts sdnts added the kind/improvement An improvement to existing feature and code. label Sep 14, 2020
@sdnts sdnts self-assigned this Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code.
Projects
None yet
Development

No branches or pull requests

1 participant