Improved error message while setting GeometryProxy