I have a form. My JS confirms the field values are valid before the form can be submitted. If invalid, it is highlighted red, focused, and given a tooltip with the reason.
Of course, I do verify and sanitize data server-side. If this validation fails, the client is given a generic error, which is shown to the end user.
My question is as follows: Should I make the generic error more specific?