mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
Print entity description on errors.
This commit is contained in:
parent
3ab981dcc1
commit
1be96de686
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ void PythonWrapper::hook(const std::string& function,
|
|||
try {
|
||||
auto ret = m_wrapper.callMemberFunction(function, Py::TupleN(wrapper));
|
||||
} catch (const Py::BaseException& py_ex) {
|
||||
log(ERROR, "Could not call hook function " + function + " on " + wrapper.type().as_string());
|
||||
log(ERROR, String::compose("Could not call hook function %1 on %2 for entity %3", function, wrapper.type().as_string(), entity->describeEntity()));
|
||||
if (PyErr_Occurred()) {
|
||||
PyErr_Print();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue