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
1 changed files with 1 additions and 1 deletions

View File

@ -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)