mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
Merge pull request #53 from tmiasko/clean-type
Clean the type name alone, not the whole message.
This commit is contained in:
commit
e9dc824866
@ -154,8 +154,9 @@ public:
|
||||
}
|
||||
auto it = internals.registered_types.find(type_info);
|
||||
if (it == internals.registered_types.end()) {
|
||||
std::string msg = std::string("Unregistered type : ") + type_info->name();
|
||||
detail::clean_type_id(msg);
|
||||
std::string tname = type_info->name();
|
||||
detail::clean_type_id(tname);
|
||||
std::string msg = "Unregistered type : " + tname;
|
||||
PyErr_SetString(PyExc_TypeError, msg.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user