Open LucasMcL opened 7 years ago
I have the same issue as well. Also using version v1 of Sails.
This is because in WLValidationError.js, the function toJSON/toPOJO is never called
asJSON[errorKey] = this.Errors;
this.Errors is not defined in WLValidationError.js
I am having same issue. I think its a long pending issue.
Hi. I can't seem to get this hook to work in Sails v1.0.0-36. Here's what I have.
Model EstablishmentClue
In sails console:
When I log error.toJSON() I get this:
Any thoughts on why the custom error messages aren't attaching?