Skip to content
Snippets Groups Projects
Commit 563af9e9 authored by Oliver Sander's avatar Oliver Sander
Browse files

more helpfull error messages

[[Imported from SVN: r1214]]
parent d113416e
No related branches found
No related tags found
No related merge requests found
......@@ -506,7 +506,7 @@ void Dune::AmiraMeshReader<Dune::UGGrid<3,3> >::read(Dune::UGGrid<3,3>& grid,
AmiraMesh* am = AmiraMesh::read(filename.c_str());
if(!am)
throw("Could not open AmiraMesh file");
DUNE_THROW(IOError, "Could not open AmiraMesh file" << filename);
if (am->findData("Hexahedra", HxINT32, 8, "Nodes")) {
readHexaGrid(grid, am);
......@@ -533,7 +533,7 @@ void Dune::AmiraMeshReader<Dune::UGGrid<3,3> >::read(Dune::UGGrid<3,3>& grid,
AmiraMesh* am = AmiraMesh::read(filename.c_str());
if(!am)
DUNE_THROW(IOError, "read: Could not open AmiraMesh file");
DUNE_THROW(IOError, "read: Could not open AmiraMesh file" << filename);
if (am->findData("Hexahedra", HxINT32, 8, "Nodes")) {
readHexaGrid(grid, am);
......
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