Better error messages in representation.py
kevinfoley opened this issue · comments
I was working on a robot with 131 links and got an assertion error from representation.py
, on this line:
assert self.input_type in MESH_DATA_TYPES
The generic assertion error and call stack was not helpful for understanding what went wrong or which of the 131 links was causing the problem.
Rather than a simple assert
, we should raise an AssertionError with more details about what went wrong. This would make the problem much easier to understand and fix in Blender.