Join Slack
Powered by
Does anyone know how to handle unique constraint e...
# orm-help
s
Sean Urgel
01/08/2019, 3:39 AM
Does anyone know how to handle unique constraint errors? I am trying to catch and gracefully send back a custom error message instead of
Error: A unique constraint would be violated on User. Details: Field name =email
Sean Urgel
01/08/2019, 3:40 AM
Even with a try catch block, I can’t seem to get it so I can send back my own error
3
Views
Open in Slack
Previous
Next