mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Debugging: Improve SymInitialize fail message (#28206)
* clarify that this is not the crash error, but an error with the crash report itself
* improve formatting and message boundaries
* warn the reader that this means the call stack symbols may be inaccurate
(cherry picked from commit 6e37438e5d)
This commit is contained in:
@@ -722,8 +722,13 @@ PEXCEPTION_POINTERS pExceptionInfo)
|
||||
// Initialize DbgHelp
|
||||
if (!SymInitialize(GetCurrentProcess(), nullptr, TRUE))
|
||||
{
|
||||
Log(_T("\n\rCRITICAL ERROR.\n\r Couldn't initialize the symbol handler for process.\n\rError [%s].\n\r\n\r"),
|
||||
ErrorMessage(GetLastError()));
|
||||
Log(_T("\r\n"));
|
||||
Log(_T("----\r\n"));
|
||||
Log(_T("SYMBOL HANDLER ERROR (THIS IS NOT THE CRASH ERROR)\r\n\r\n"));
|
||||
Log(_T("Couldn't initialize symbol handler for process when generating crash report\r\n"));
|
||||
Log(_T("Error: %s\r\n"), ErrorMessage(GetLastError()));
|
||||
Log(_T("THE BELOW CALL STACKS MIGHT HAVE MISSING OR INACCURATE FILE/FUNCTION NAMES\r\n\r\n"));
|
||||
Log(_T("----\r\n"));
|
||||
}
|
||||
|
||||
if (pExceptionRecord->ExceptionCode == 0xE06D7363 && pExceptionRecord->NumberParameters >= 2)
|
||||
|
||||
Reference in New Issue
Block a user