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

feature request: include problematic values in UniqueViolationError #13

Open
good-idea opened this issue Nov 8, 2019 · 0 comments
Open

Comments

@good-idea
Copy link

Right now I'm using the .columns property on UniqueViolationErrors to format some human-readable error messages, i.e. This emailAddress is already in use. It would be great to be able to get the values that violate the constraint as well, to more easily get The emailAddress '[email protected]' is already in use.

Right now I can parse this out of the nativeError.detail property (I'm using PostgreSQL, not sure if this is a property specific to that).

Otherwise ~ thanks for this lib, it's super helpful to have a more structured way to deal with errors :)

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

No branches or pull requests

1 participant