Merge pull request #891 from andlaus/fix_catch22

FlowMain: use std::cout to print exceptions to the terminal
This commit is contained in:
Atgeirr Flø Rasmussen 2016-11-03 21:20:28 +01:00 committed by GitHub
commit 70f67d1698

View File

@ -166,7 +166,14 @@ namespace Opm
if( output_cout_ )
{
OpmLog::error(message.str());
// in some cases exceptions are thrown before the logging system is set
// up.
if (OpmLog::hasBackend("STREAMLOG")) {
OpmLog::error(message.str());
}
else {
std::cout << message.str() << "\n";
}
}
return EXIT_FAILURE;