[CS] Reduce duplication in error conditions