mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
Merge pull request #891 from andlaus/fix_catch22
FlowMain: use std::cout to print exceptions to the terminal
This commit is contained in:
commit
70f67d1698
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user