Explorar o código

add an error message

Lee Thomason %!s(int64=11) %!d(string=hai) anos
pai
achega
c755667aa0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      xmltest.cpp

+ 1 - 0
xmltest.cpp

@@ -1223,6 +1223,7 @@ int main( int argc, const char ** argv )
 		XMLError error = doc.LoadFile( "resources/empty.xml" );
 		XMLTest( "Loading an empty file", XML_ERROR_EMPTY_DOCUMENT, error );
 		XMLTest( "Loading an empty file and ErrorName as string", "XML_ERROR_EMPTY_DOCUMENT", doc.ErrorName() );
+		doc.PrintError();
 	}
 
 	{