lukejagodzinski / meteor-astronomy-validators

https://atmospherejs.com/jagi/astronomy-validators
MIT License
11 stars 13 forks source link

Give comparison field name to error message in equalTo validator #39

Closed peterchoo closed 8 years ago

peterchoo commented 8 years ago

I noticed that the error message gets the value it's compared against, rather than the field name, so I would see:

{update_date: "The values of the "update_date" and "Mon Jan 25 2016 15:27:27 GMT+0000 (GMT)" fields have to be equal"}

Instead of:

{update_date: "The values of the "update_date" and "resolved_date" fields have to be equal"}
lukejagodzinski commented 8 years ago

Ok thanks! Merging