Provide more traces for breakpad

This commit is contained in:
Michał Janiszewski 2022-07-30 22:59:23 +02:00
parent 826918c0c6
commit f9e870a388
2 changed files with 10 additions and 1 deletions

View File

@ -459,6 +459,13 @@ static void PrintVersion()
Console::WriteLine();
Console::WriteFormat("Minimum park file version: %d", OpenRCT2::PARK_FILE_MIN_VERSION);
Console::WriteLine();
#ifdef USE_BREAKPAD
Console::WriteFormat("With breakpad support enabled");
Console::WriteLine();
#else
Console::WriteFormat("Breakpad support disabled");
Console::WriteLine();
#endif
}
static void PrintLaunchInformation()

View File

@ -186,8 +186,9 @@ static bool OnCrash(
exporter->Export(saveFilePathUTF8.c_str());
savedGameDumped = true;
}
catch (const std::exception&)
catch (const std::exception& e)
{
printf("Failed to export save. Error: %s\n", e.what());
}
// Compress the save
@ -225,6 +226,7 @@ static bool OnCrash(
if (gOpenRCT2SilentBreakpad)
{
printf("Uploading minidump in silent mode...\n");
int error;
std::wstring response;
UploadMinidump(uploadFiles, error, response);