From f5eae12b80e8392011704b07b1abe862056bdc91 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 17 Apr 2020 06:12:40 +0800 Subject: [PATCH] Enhance logging message --- ryzom/client/src/r2/editor.cpp | 2 +- ryzom/common/src/game_share/scenario.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ryzom/client/src/r2/editor.cpp b/ryzom/client/src/r2/editor.cpp index 28e789b61..fa98d3c3b 100644 --- a/ryzom/client/src/r2/editor.cpp +++ b/ryzom/client/src/r2/editor.cpp @@ -497,7 +497,7 @@ void CEditor::requestSetLocalNode(const std::string& instanceId, const std::stri CObject *src = _DMC->find(instanceId); 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; } if (!attrName.empty()) diff --git a/ryzom/common/src/game_share/scenario.cpp b/ryzom/common/src/game_share/scenario.cpp index 3782c45cf..88ff1480a 100644 --- a/ryzom/common/src/game_share/scenario.cpp +++ b/ryzom/common/src/game_share/scenario.cpp @@ -111,7 +111,7 @@ CObject *CScenario::find(const std::string& instanceId, const std::string & attr CObject *src = _InstanceMap->find(instanceId); 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; } if (!attrName.empty())