Add meaningful message to error raised on missing attribute