mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
chore(Common/Debugging): change report codestyle (#18383)
This commit is contained in:
@@ -62,16 +62,16 @@ namespace
|
|||||||
inline std::string MakeMessage(std::string_view messageType, std::string_view file, uint32 line, std::string_view function,
|
inline std::string MakeMessage(std::string_view messageType, std::string_view file, uint32 line, std::string_view function,
|
||||||
std::string_view message, std::string_view fmtMessage = {}, std::string_view debugInfo = {})
|
std::string_view message, std::string_view fmtMessage = {}, std::string_view debugInfo = {})
|
||||||
{
|
{
|
||||||
std::string msg = Acore::StringFormatFmt("\n>> {}\n\n# Location '{}:{}'\n# Function '{}'\n# Condition '{}'\n", messageType, file, line, function, message);
|
std::string msg = Acore::StringFormatFmt("\n>> {}\n\n# Location: {}:{}\n# Function: {}\n# Condition: {}\n", messageType, file, line, function, message);
|
||||||
|
|
||||||
if (!fmtMessage.empty())
|
if (!fmtMessage.empty())
|
||||||
{
|
{
|
||||||
msg.append(Acore::StringFormatFmt("# Message '{}'\n", fmtMessage));
|
msg.append(Acore::StringFormatFmt("# Message: {}\n", fmtMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!debugInfo.empty())
|
if (!debugInfo.empty())
|
||||||
{
|
{
|
||||||
msg.append(Acore::StringFormatFmt("\n# Debug info: '{}'\n", debugInfo));
|
msg.append(Acore::StringFormatFmt("\n# Debug info: {}\n", debugInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Acore::StringFormatFmt(
|
return Acore::StringFormatFmt(
|
||||||
|
|||||||
Reference in New Issue
Block a user