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

Fix utils create validation error. Parse "ValidationError" #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreiFiodorov
Copy link
Contributor

The utils create-validation-error.ts not parse the error:

{
  name: 'ValidationError',
  data: { email: 'Invalid email address' }
}

In the future, I think there will still be errors that he will fail to parse.

@dziraf
Copy link
Contributor

dziraf commented Feb 24, 2022

Is this a different format for mongoose errors? Could you give more context so I can reproduce before merging?

@fyodorovandrei
Copy link

fyodorovandrei commented Mar 9, 2022

@dziraf Sorry, but I cannot have access to the old account and code to get more details about error. I remember badly, but this fix is for parse ValidatioErrors

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

Successfully merging this pull request may close these issues.

3 participants