diff options
author | 2022-03-29 01:13:41 +0200 | |
---|---|---|
committer | 2022-03-28 16:13:41 -0700 | |
commit | 8200f650651bf0f23b6168f13e24cbc84053555d (patch) | |
tree | 7911d51bccbdc630eeaa1cbbdc487ad1d8d199a7 /Source/Utils/MsgLogger/MsgLogger.cpp | |
parent | ebcb82829cf7254a5fe1e474c7d40dcd479a7132 (diff) | |
download | WarpX-8200f650651bf0f23b6168f13e24cbc84053555d.tar.gz WarpX-8200f650651bf0f23b6168f13e24cbc84053555d.tar.zst WarpX-8200f650651bf0f23b6168f13e24cbc84053555d.zip |
Use Utils::TextMsg::Err in Message Logger (#3000)
Diffstat (limited to '')
-rw-r--r-- | Source/Utils/MsgLogger/MsgLogger.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <AMReX_ParallelDescriptor.H> @@ -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; |