Clearer error in composite attribute