From 447f1d8d019d2b8fa0b33d7875e52ee30ee6265b Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Tue, 29 Oct 2024 00:07:28 -0700 Subject: [PATCH] add error reporting for failed charxml --- dGame/Character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/Character.cpp b/dGame/Character.cpp index 57a951d9..6c98fd85 100644 --- a/dGame/Character.cpp +++ b/dGame/Character.cpp @@ -76,7 +76,7 @@ void Character::DoQuickXMLDataParse() { if (m_Doc.Parse(m_XMLData.c_str(), m_XMLData.size()) == 0) { LOG("Loaded xmlData for character %s (%i)!", m_Name.c_str(), m_ID); } else { - LOG("Failed to load xmlData!"); + LOG("Failed to load xmlData (%i) (%s) (%s)!", m_Doc.ErrorID(), m_Doc.ErrorIDToName(m_Doc.ErrorID()), m_Doc.ErrorStr()); //Server::rakServer->CloseConnection(m_ParentUser->GetSystemAddress(), true); return; }