aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/MsgLogger/MsgLogger.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2022-03-29 01:13:41 +0200
committerGravatar GitHub <noreply@github.com> 2022-03-28 16:13:41 -0700
commit8200f650651bf0f23b6168f13e24cbc84053555d (patch)
tree7911d51bccbdc630eeaa1cbbdc487ad1d8d199a7 /Source/Utils/MsgLogger/MsgLogger.cpp
parentebcb82829cf7254a5fe1e474c7d40dcd479a7132 (diff)
downloadWarpX-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.cpp5
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;