Have the XML parser warn about the error. Don't make every XML user have their own warning code.

This commit is contained in:
Chris Danford
2005-05-29 01:05:23 +00:00
parent 94a9cda191
commit ceef12b5cd
5 changed files with 32 additions and 29 deletions
+1 -5
View File
@@ -783,12 +783,8 @@ Profile::LoadResult Profile::LoadAllFromDir( CString sDir, bool bRequireSignatur
LOG->Trace( "Loading %s", fn.c_str() );
XNode xml;
PARSEINFO pi;
if( !xml.LoadFromFile( fn, &pi ) )
{
LOG->Warn( "Error parsing file '%s': %s", fn.c_str(), pi.error_string.c_str() );
if( !xml.LoadFromFile(fn) )
return failed_tampered;
}
LOG->Trace( "Done." );
return LoadStatsXmlFromNode( &xml );