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
@@ -122,12 +122,8 @@ void Bookkeeper::ReadFromDisk()
return;
XNode xml;
PARSEINFO pi;
if( !xml.LoadFromFile(COINS_DAT, &pi) )
{
LOG->Warn( "Error parsing file \"%s\": %s", COINS_DAT.c_str(), pi.error_string.c_str() );
if( !xml.LoadFromFile(COINS_DAT) )
return;
}
LoadFromNode( &xml );
}