mirror of https://github.com/AxioDL/tinyxml2.git
add an error message
This commit is contained in:
parent
331596e83c
commit
c755667aa0
|
@ -1223,6 +1223,7 @@ int main( int argc, const char ** argv )
|
||||||
XMLError error = doc.LoadFile( "resources/empty.xml" );
|
XMLError error = doc.LoadFile( "resources/empty.xml" );
|
||||||
XMLTest( "Loading an empty file", XML_ERROR_EMPTY_DOCUMENT, error );
|
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() );
|
XMLTest( "Loading an empty file and ErrorName as string", "XML_ERROR_EMPTY_DOCUMENT", doc.ErrorName() );
|
||||||
|
doc.PrintError();
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue