Commit 392f16cc by Ivan Smirnov

Properly format type name in error_already_set()

parent 8706fb90
......@@ -111,7 +111,7 @@ PYBIND11_NOINLINE inline std::string error_string() {
std::string errorString;
if (type) {
errorString += (std::string) handle(type).str();
errorString += handle(type).attr("__name__").cast<std::string>();
errorString += ": ";
}
if (value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment