Attached is a simple patch that at least provides a better error message about object not being a path.
Attached is a simple patch that at least provides a better error message about object not being a path.