diff --git a/dune/gfe/vtkfile.hh b/dune/gfe/vtkfile.hh index 71a59dbd48c72ff0ed37c3cc4ca3613767fc6c89..630480bd8aa40639777889c130601a46ef18bdb2 100644 --- a/dune/gfe/vtkfile.hh +++ b/dune/gfe/vtkfile.hh @@ -184,8 +184,11 @@ namespace Dune { DUNE_THROW(Dune::NotImplemented, "You need TinyXML2 for vtk file reading!"); #else tinyxml2::XMLDocument doc; - if (doc.LoadFile(fullfilename.c_str()) != tinyxml2::XML_SUCCESS) + if (int error = doc.LoadFile(fullfilename.c_str()) != tinyxml2::XML_SUCCESS) + { + std::cout << "Error: " << error << std::endl; DUNE_THROW(Dune::IOError, "Couldn't open the file '" << fullfilename << "'"); + } // Get number of cells and number of points tinyxml2::XMLElement* pieceElement = doc.FirstChildElement( "VTKFile" )->FirstChildElement( "UnstructuredGrid" )->FirstChildElement( "Piece" ); @@ -354,4 +357,4 @@ namespace Dune { } -#endif \ No newline at end of file +#endif