Improve constraint validation error messages.