make attribute error message better on wrap