Fixed docstring and added a cautious error message