From 5a861afa3c333cea9f67831aee4ba1b1d551cf19 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 30 Jun 2024 00:52:47 +0200 Subject: [PATCH] Extend logging for else case as well --- indra/llui/lluictrlfactory.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/llui/lluictrlfactory.cpp b/indra/llui/lluictrlfactory.cpp index 67ed57464a..dc04d0cbaf 100644 --- a/indra/llui/lluictrlfactory.cpp +++ b/indra/llui/lluictrlfactory.cpp @@ -152,7 +152,9 @@ void LLUICtrlFactory::createChildren(LLView* viewp, LLXMLNodePtr node, const wid //LL_WARNS() << "Could not create widget named " << child_node->getName()->mString << LL_ENDL; std::string name; node->getAttributeString("name", name); - LL_WARNS() << "Could not create widget named " << child_node->getName()->mString << " for " << name << " (line no. " << node->getLineNumber() << ")" << LL_ENDL; + std::string child_name_attribute; + child_node->getAttributeString("name", child_name_attribute); + LL_WARNS() << "Could not create widget " << child_node->getName()->mString << " with name " << child_name_attribute << " for " << name << " (line no. " << node->getLineNumber() << ")" << LL_ENDL; // } }