mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 09:10:59 -06:00
catch all exceptions in all tutorials and examples
This commit is contained in:
parent
fde3fe3332
commit
a224122d84
@ -73,6 +73,7 @@ namespace
|
||||
// ----------------- Main program -----------------
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
try
|
||||
{
|
||||
using namespace Opm;
|
||||
|
||||
@ -209,3 +210,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