Replies: 1 comment
-
We should add a separate error class for this error. Right now there is no good way to handle just this error, other than relying on the error message. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following code:
and then in one of the controllers I have the following code:
The above line results in the following error:
I want to handle this error in my express error handling middleware, but how?
The error doesn't have any unique field that I can use, such as
error.code
orerror.name
.So How to handle this error?
Beta Was this translation helpful? Give feedback.
All reactions