mirror of
				https://github.com/OPM/opm-simulators.git
				synced 2025-02-25 18:55:30 -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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user