Not returning custom errors with Sails 0.12.9
Opened this issue · 4 comments
boycce commented
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 commented
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 commented
+1
When i call User.validate(userObject)
it is doesn't work
armellarcier commented
@chungledna is it not the default locale that changed? What locale are you usually supporting?
armellarcier commented
We need more info on this issue. I can't reproduce it. Seems to me it should be closed unless hinted otherwise soon enough.