Properly format type name in error_already_set()

This commit is contained in:
Ivan Smirnov 2016-08-28 21:25:25 +01:00
parent 8706fb9085
commit 392f16ccb8

View File

@ -111,7 +111,7 @@ PYBIND11_NOINLINE inline std::string error_string() {
std::string errorString; std::string errorString;
if (type) { if (type) {
errorString += (std::string) handle(type).str(); errorString += handle(type).attr("__name__").cast<std::string>();
errorString += ": "; errorString += ": ";
} }
if (value) if (value)