From bc07b688c5d16ffe569e1c58108d615d789523e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 25 Jun 2019 10:10:58 +0200 Subject: [PATCH] Fix typo, indentation and return in unknown-parameter situation. --- opm/simulators/flow/FlowMainEbos.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/flow/FlowMainEbos.hpp b/opm/simulators/flow/FlowMainEbos.hpp index c573038a9..c27aa35c0 100644 --- a/opm/simulators/flow/FlowMainEbos.hpp +++ b/opm/simulators/flow/FlowMainEbos.hpp @@ -236,7 +236,7 @@ namespace Opm { if ( output_cout_ ) { - std::string msg = "Aborting simulation due unknown " + std::string msg = "Aborting simulation due to unknown " "parameters. Please query \"flow --help\" for " "supported command line parameters."; if (OpmLog::hasBackend("STREAMLOG")) @@ -244,14 +244,14 @@ namespace Opm OpmLog::error(msg); } else { - std::cerr << msg << std::endl; + std::cerr << msg << std::endl; } } #if HAVE_MPI MPI_Finalize(); #endif - exit(EXIT_FAILURE); + return EXIT_FAILURE; } runDiagnostics(); createSimulator();