This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Repository navigation
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Can someone please help me understand why the error handler is used in some cases and not in others?
I have a table named
userwhich has a unique column namedemail.If I create a new
userwith a duplicate email the error fromfeathers-objectionlooks something like this:However, if I edit an existing
userto change the email to a value that already exists in the DB, I get an error that looks something like this:This seems to happen when
_patchis called and this query is hit. Making the change to add.catch(errorHandler);at the end of that statement seems to give the desired result but is there another reason why we don't callerrorHandlerthere?All reactions