From e06bbf5731978f25fd2bb08619c2c76e4c2210a5 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Mon, 25 Jan 2021 07:20:11 +0100 Subject: [PATCH 1/2] Remove extra ',' in output format - recovers internal message --- src/opm/parser/eclipse/EclipseState/EclipseState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opm/parser/eclipse/EclipseState/EclipseState.cpp b/src/opm/parser/eclipse/EclipseState/EclipseState.cpp index 8a4143e08..a513a8a54 100644 --- a/src/opm/parser/eclipse/EclipseState/EclipseState.cpp +++ b/src/opm/parser/eclipse/EclipseState/EclipseState.cpp @@ -88,7 +88,7 @@ namespace Opm { throw; } catch (const std::exception& std_error) { - OpmLog::error(fmt::format("An error occured while creating the reservoir properties\n", + OpmLog::error(fmt::format("An error occured while creating the reservoir properties\n" "Internal error: {}", std_error.what())); throw; } From 57ab9d0d95c971a6872b5fa331caab81ed38c8f0 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Mon, 25 Jan 2021 07:21:09 +0100 Subject: [PATCH 2/2] Make error message stand out more with newlines --- src/opm/parser/eclipse/EclipseState/EclipseState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opm/parser/eclipse/EclipseState/EclipseState.cpp b/src/opm/parser/eclipse/EclipseState/EclipseState.cpp index a513a8a54..e5586b653 100644 --- a/src/opm/parser/eclipse/EclipseState/EclipseState.cpp +++ b/src/opm/parser/eclipse/EclipseState/EclipseState.cpp @@ -88,8 +88,8 @@ namespace Opm { throw; } catch (const std::exception& std_error) { - OpmLog::error(fmt::format("An error occured while creating the reservoir properties\n" - "Internal error: {}", std_error.what())); + OpmLog::error(fmt::format("\nAn error occured while creating the reservoir properties\n" + "Internal error: {}\n", std_error.what())); throw; }