From 008e2d4dce77881519ef42dbe6397d12602e20b0 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:17:29 -0800 Subject: [PATCH] add error reporting for failed charxml (#1642) --- 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; }