Update error message for unsuccessful crash uploads (#11217)

The upload will be rejected to a disabled submission token, which we sometimes do.
This commit is contained in:
Michał Janiszewski authored and GitHub committed 2020-04-03 22:48:27 +02:00
1 parent 87dd126e2a
commit 89ae2b51d6
1 file changed
+4 -1
+4 -1
View File
@@ -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