mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-23 09:46:24 -06:00
catch all exceptions in all tutorials and examples
This commit is contained in:
parent
e8458e9a23
commit
f0e86b98e3
@ -71,6 +71,7 @@ namespace
|
||||
// ----------------- Main program -----------------
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
try
|
||||
{
|
||||
using namespace Opm;
|
||||
|
||||
@ -300,3 +301,7 @@ main(int argc, char** argv)
|
||||
}
|
||||
|
||||
}
|
||||
catch (const std::exception &e) {
|
||||
std::cerr << "Program threw an exception: " << e.what() << "\n";
|
||||
throw;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user