shapeindex: more consistent error output