Make missing attribute error more descriptive