make attribute error message better on wrap
Merge pull request #85 from dannyroberts/better-attribute-error

make attribute error message better on wrap