Enhance logging message

ryzomclassic-develop
kaetemi 5 years ago
parent 1452a6ba6d
commit f5eae12b80

@ -497,7 +497,7 @@ void CEditor::requestSetLocalNode(const std::string& instanceId, const std::stri
CObject *src = _DMC->find(instanceId); CObject *src = _DMC->find(instanceId);
if (!src) if (!src)
{ {
nlwarning("Can't find object with id %s", instanceId.c_str()); nlwarning("Can't find object with id '%s' (setting attribute '%s')", instanceId.c_str(), attrName.c_str());
return; return;
} }
if (!attrName.empty()) if (!attrName.empty())

@ -111,7 +111,7 @@ CObject *CScenario::find(const std::string& instanceId, const std::string & attr
CObject *src = _InstanceMap->find(instanceId); CObject *src = _InstanceMap->find(instanceId);
if (!src) if (!src)
{ {
nlwarning("Can't find object with id %s", instanceId.c_str()); nlwarning("Can't find object with id '%s' (looking for attribute '%s[%d]' or '...[%s]')", instanceId.c_str(), attrName.c_str(), (int)position, key.c_str());
return NULL; return NULL;
} }
if (!attrName.empty()) if (!attrName.empty())

Loading…
Cancel
Save