Commit e8c152b7 authored by Philipp Nuske's avatar Philipp Nuske
Browse files

improved the error message if sth in the dgf file went wrong

reviewed by Bernd


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10270 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 8ac95cef
......@@ -499,13 +499,20 @@ int start(int argc,
std::cerr << e << ". Abort!\n";
return 1;
}
catch (Dune::DGFException & e) {
std::cerr << "DGF exception thrown. "
"Most likely, the DGF file name is wrong "
"or the DGF file is corrupted, "
"e.g. missing hash at end of file or wrong number (dimensions) of entries." << std::endl;
return 2;
}
catch (Dune::Exception &e) {
std::cerr << "Dune reported error: " << e << std::endl;
return 2;
return 3;
}
catch (...) {
std::cerr << "Unknown exception thrown!\n";
return 3;
return 4;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment