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 2020-04-03 22:48:27 +02:00 committed by GitHub
parent 87dd126e2a
commit 89ae2b51d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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