Display more informative error message on XML load fail.

This commit is contained in:
Bruno Herbelin
2022-03-20 12:06:32 +01:00
parent fe66c95a29
commit 8df6a2dd83

View File

@@ -103,7 +103,7 @@ void SessionCreator::load(const std::string& filename)
{
XMLError eResult = xmlDoc_.LoadFile(filename.c_str());
if ( XMLResultError(eResult)){
Log::Warning("%s could not be opened.", filename.c_str());
Log::Warning("%s could not be opened.\n%s", filename.c_str(), xmlDoc_.ErrorStr());
return;
}