Added more verbose error messages when adding attributes.

Also removed debugging log comment.