Commit e9dc8248 by Wenzel Jakob

Merge pull request #53 from tmiasko/clean-type

Clean the type name alone, not the whole message.
parents 45f7c655 5d53ac4c
...@@ -154,8 +154,9 @@ public: ...@@ -154,8 +154,9 @@ public:
} }
auto it = internals.registered_types.find(type_info); auto it = internals.registered_types.find(type_info);
if (it == internals.registered_types.end()) { if (it == internals.registered_types.end()) {
std::string msg = std::string("Unregistered type : ") + type_info->name(); std::string tname = type_info->name();
detail::clean_type_id(msg); detail::clean_type_id(tname);
std::string msg = "Unregistered type : " + tname;
PyErr_SetString(PyExc_TypeError, msg.c_str()); PyErr_SetString(PyExc_TypeError, msg.c_str());
return nullptr; return nullptr;
} }
......
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