From 89ae2b51d607ba07bea9fbd3ff6e5a4235fed171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 3 Apr 2020 22:48:27 +0200 Subject: [PATCH] Update error message for unsuccessful crash uploads (#11217) The upload will be rejected to a disabled submission token, which we sometimes do. --- src/openrct2/platform/Crash.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openrct2/platform/Crash.cpp b/src/openrct2/platform/Crash.cpp index 6c02f26d90..d0fba1fc2c 100644 --- a/src/openrct2/platform/Crash.cpp +++ b/src/openrct2/platform/Crash.cpp @@ -248,10 +248,13 @@ static bool OnCrash( { const wchar_t* MessageFormat2 = L"There was a problem while uploading the dump. Please upload it manually to " L"GitHub. It should be highlighted for you once you close this message.\n" + L"It might be because you are using outdated build and we have disabled its " + L"access token. Make sure you are running recent version.\n" + L"Dump file = %s\n" L"Please provide following information as well:\n" L"Error code = %d\n" L"Response = %s"; - swprintf_s(message, MessageFormat2, error, response.c_str()); + swprintf_s(message, MessageFormat2, dumpFilePath, error, response.c_str()); MessageBoxW(nullptr, message, WSZ(OPENRCT2_NAME), MB_OK | MB_ICONERROR); } else