From 29808c61c93c48cce89605a0dca987f4f3183e8f Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 5 Sep 2020 13:41:42 +0100 Subject: [PATCH] Reformat messages in NonCtrlHandler --- src/main.cpp | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4a9f22f7d..e0ce68a8c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,14 +51,16 @@ static void NonCtrlHandler(int a_Signal) { PrintStackTrace(); - LOGERROR("Failure report: \n\n" - " :( | Cuberite has encountered an error and needs to close\n" - " | SIGSEGV: Segmentation fault\n" - " |\n" + LOGERROR( + "Failure report: \n\n" + " :( | Cuberite has encountered an error and needs to close\n" + " | SIGSEGV: Segmentation fault\n" + " |\n" #ifdef BUILD_ID - " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" - " | from commit " BUILD_COMMIT_ID "\n"); + " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" + " | from commit " BUILD_COMMIT_ID "\n" #endif + ); std::signal(SIGSEGV, SIG_DFL); return; @@ -70,14 +72,16 @@ static void NonCtrlHandler(int a_Signal) { PrintStackTrace(); - LOGERROR("Failure report: \n\n" - " :( | Cuberite has encountered an error and needs to close\n" - " | SIGABRT: Server self-terminated due to an internal fault\n" - " |\n" + LOGERROR( + "Failure report: \n\n" + " :( | Cuberite has encountered an error and needs to close\n" + " | SIGABRT: Server self-terminated due to an internal fault\n" + " |\n" #ifdef BUILD_ID - " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" - " | from commit " BUILD_COMMIT_ID "\n"); + " | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n" + " | from commit " BUILD_COMMIT_ID "\n" #endif + ); std::signal(SIGSEGV, SIG_DFL); return;