Reformat messages in NonCtrlHandler
This commit is contained in:
parent
1bc12ba2b3
commit
29808c61c9
12
src/main.cpp
12
src/main.cpp
@ -51,14 +51,16 @@ static void NonCtrlHandler(int a_Signal)
|
|||||||
{
|
{
|
||||||
PrintStackTrace();
|
PrintStackTrace();
|
||||||
|
|
||||||
LOGERROR("Failure report: \n\n"
|
LOGERROR(
|
||||||
|
"Failure report: \n\n"
|
||||||
" :( | Cuberite has encountered an error and needs to close\n"
|
" :( | Cuberite has encountered an error and needs to close\n"
|
||||||
" | SIGSEGV: Segmentation fault\n"
|
" | SIGSEGV: Segmentation fault\n"
|
||||||
" |\n"
|
" |\n"
|
||||||
#ifdef BUILD_ID
|
#ifdef BUILD_ID
|
||||||
" | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n"
|
" | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n"
|
||||||
" | from commit " BUILD_COMMIT_ID "\n");
|
" | from commit " BUILD_COMMIT_ID "\n"
|
||||||
#endif
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
std::signal(SIGSEGV, SIG_DFL);
|
std::signal(SIGSEGV, SIG_DFL);
|
||||||
return;
|
return;
|
||||||
@ -70,14 +72,16 @@ static void NonCtrlHandler(int a_Signal)
|
|||||||
{
|
{
|
||||||
PrintStackTrace();
|
PrintStackTrace();
|
||||||
|
|
||||||
LOGERROR("Failure report: \n\n"
|
LOGERROR(
|
||||||
|
"Failure report: \n\n"
|
||||||
" :( | Cuberite has encountered an error and needs to close\n"
|
" :( | Cuberite has encountered an error and needs to close\n"
|
||||||
" | SIGABRT: Server self-terminated due to an internal fault\n"
|
" | SIGABRT: Server self-terminated due to an internal fault\n"
|
||||||
" |\n"
|
" |\n"
|
||||||
#ifdef BUILD_ID
|
#ifdef BUILD_ID
|
||||||
" | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n"
|
" | Cuberite " BUILD_SERIES_NAME " (id: " BUILD_ID ")\n"
|
||||||
" | from commit " BUILD_COMMIT_ID "\n");
|
" | from commit " BUILD_COMMIT_ID "\n"
|
||||||
#endif
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
std::signal(SIGSEGV, SIG_DFL);
|
std::signal(SIGSEGV, SIG_DFL);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user