Does anyone know how to handle unique constraint e...
# orm-help
s
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
Even with a try catch block, I can’t seem to get it so I can send back my own error