From f9e870a3889b5b5f7a0d8d66e996929b8d44c87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 30 Jul 2022 22:59:23 +0200 Subject: [PATCH] Provide more traces for breakpad --- src/openrct2/cmdline/RootCommands.cpp | 7 +++++++ src/openrct2/platform/Crash.cpp | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/openrct2/cmdline/RootCommands.cpp b/src/openrct2/cmdline/RootCommands.cpp index 3e7fd44adb..0a417e8573 100644 --- a/src/openrct2/cmdline/RootCommands.cpp +++ b/src/openrct2/cmdline/RootCommands.cpp @@ -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() diff --git a/src/openrct2/platform/Crash.cpp b/src/openrct2/platform/Crash.cpp index fc6a3f0507..af2f268fb2 100644 --- a/src/openrct2/platform/Crash.cpp +++ b/src/openrct2/platform/Crash.cpp @@ -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);