|
|
|
|
|
by ambicapter
283 days ago
|
|
Most validation libraries worth their salt give you options to deal with this sort of thing? They'll hand you an aggregate error with an 'errors' array, or they'll let you write an error message "prettify-er" to make a particular validation error easier to read. |
|
So maybe the reason why they were able to reduce the code is because they lost the ability to do good error reporting.