[generic] Clarify error messages