more friendly error message on unknown attrs