From 1c6f1bf24513b4e56f640eea402fa8223ea1c667 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 1 May 2023 18:25:01 +0200 Subject: Use WARPX_ABORT_WITH_MESSAGE("msg") instead of amrex::Abort(Utils::TextMsg::Err("msg")) (#3879) * use WARPX_ABORT_WITH_MSG instead of amrex::Abort(Utils::TextMsg::Err(msg)) [WIP] * use WARPX_ABORT_WITH_MESSAGE * fix typo * fix missing parenthesis * remove spaces to prevent automatic text wrapping * remove wrong parenthesis --- Source/ablastr/utils/msg_logger/MsgLogger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/ablastr/utils/msg_logger/MsgLogger.cpp') diff --git a/Source/ablastr/utils/msg_logger/MsgLogger.cpp b/Source/ablastr/utils/msg_logger/MsgLogger.cpp index c3bca4788..3652ff69d 100644 --- a/Source/ablastr/utils/msg_logger/MsgLogger.cpp +++ b/Source/ablastr/utils/msg_logger/MsgLogger.cpp @@ -118,8 +118,8 @@ Priority abl_msg_logger::StringToPriority(const std::string& priority_string) else if (priority_string == "low") return Priority::low; else - amrex::Abort(abl_utils::TextMsg::Err( - "Priority string '" + priority_string + "' not recognized")); + ABLASTR_ABORT_WITH_MESSAGE( + "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