doc/docstrings/curl_errstr.rst
raw| 1 | errstr() -> string |
| 2 | |
| 3 | Return the internal libcurl error buffer of this handle as a string. |
| 4 | |
| 5 | Return value is a ``str`` instance. Error buffer data is decoded using |
| 6 | Python's default encoding at the time of the call. If this decoding fails, |
| 7 | ``UnicodeDecodeError`` is raised. Use :ref:`errstr_raw <errstr_raw>` to |
| 8 | retrieve the error buffer as a byte string in this case. |