Skip to content
Snippets Groups Projects
Commit 87db1814 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: stop processing on file parsing error

parent e8e6439e
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ void OSMDataToVectorDataGenerator::ParseXmlFile()
if (!doc.LoadFile())
{
std::cout <<"Cannot open the file "<<m_FileName <<std::endl;
itkExceptionMacro( <<"Cannot open the file "<<m_FileName );
}
// Parse the xml
......@@ -120,7 +120,7 @@ void OSMDataToVectorDataGenerator::ParseXmlFile()
TiXmlHandle root = hDoc.FirstChildElement();
if(!root.ToElement())
std::cout<<"There is a problem with the XML file, The field way is not found"<<std::endl;
itkExceptionMacro( "Invalid or corrupted XML file : The field way is not found");
//////////// //////////// //////////// //////////// ////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment