From 8200f650651bf0f23b6168f13e24cbc84053555d Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 29 Mar 2022 01:13:41 +0200 Subject: Use Utils::TextMsg::Err in Message Logger (#3000) --- Source/Utils/MsgLogger/MsgLogger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Utils/MsgLogger/MsgLogger.cpp') diff --git a/Source/Utils/MsgLogger/MsgLogger.cpp b/Source/Utils/MsgLogger/MsgLogger.cpp index f5d4fcb45..45e275129 100644 --- a/Source/Utils/MsgLogger/MsgLogger.cpp +++ b/Source/Utils/MsgLogger/MsgLogger.cpp @@ -8,6 +8,7 @@ #include "MsgLogger.H" #include "MsgLoggerSerialization.H" +#include "Utils/TextMsg.H" #ifdef AMREX_USE_MPI # include @@ -113,8 +114,8 @@ Priority Utils::MsgLogger::StringToPriority(const std::string& priority_string) else if (priority_string == "low") return Priority::low; else - amrex::Abort( - "Priority string '" + priority_string + "' not recognized"); + amrex::Abort(Utils::TextMsg::Err( + "Priority string '" + priority_string + "' not recognized")); //this silences a "non-void function does not return a value in all control paths" warning return Priority::low; -- cgit v1.2.3