fixes #7 show error message or docstring when available