Skip to content
Snippets Groups Projects
Commit f938ac2e authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[test-quadrature] (Re)Throw exceptions out of main instead of doing exit(1).

This has the effect that the standard library will see the exception and will
usually print information about it, such as the type of the exception.
parent f6eb5eee
No related branches found
No related tags found
No related merge requests found
......@@ -234,11 +234,11 @@ int main (int argc, char** argv)
catch( const Dune::Exception &e )
{
std::cerr << e << std::endl;
return 1;
throw;
}
catch (...) {
std::cerr << "Generic exception!" << std::endl;
return 1;
throw;
}
return success ? 0 : 1;
......
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