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

Not returning custom errors with Sails 0.12.9 #49

Open
boycce opened this issue Jan 22, 2017 · 4 comments
Open

Not returning custom errors with Sails 0.12.9 #49

boycce opened this issue Jan 22, 2017 · 4 comments

Comments

@boycce
Copy link

boycce commented Jan 22, 2017

Hey, I recently upgraded to Sails 0.12.9 but now it seems it's just returning the original error messages when using model.validate.

@chungledna
Copy link

Hi @boycce Are you push comment code in language file?
Ex:
//Authentication message "authentication.email.requered": "Hallu "
I got same issue when I push the comment in file /locale/en.json
and it work well when I remove the comment in en.json file.

@asergey87
Copy link

asergey87 commented Apr 27, 2017

+1
When i call User.validate(userObject) it is doesn't work

@armellarcier
Copy link
Contributor

@chungledna is it not the default locale that changed? What locale are you usually supporting?

@armellarcier
Copy link
Contributor

We need more info on this issue. I can't reproduce it. Seems to me it should be closed unless hinted otherwise soon enough.

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

No branches or pull requests

4 participants