1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Merge pull request #26871 from peppy/show-better-expired-message

Show a better message when score submission fails due to system clock being set wrong
This commit is contained in:
Dean Herbert 2024-01-31 17:32:18 +09:00 committed by GitHub
commit 696ecda398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,7 +132,18 @@ namespace osu.Game.Screens.Play
if (string.IsNullOrEmpty(exception.Message))
Logger.Error(exception, "Failed to retrieve a score submission token.");
else
{
switch (exception.Message)
{
case "expired token":
Logger.Log("Score submission failed because your system clock is set incorrectly. Please check your system time, date and timezone.", level: LogLevel.Important);
break;
default:
Logger.Log($"You are not able to submit a score: {exception.Message}", level: LogLevel.Important);
break;
}
}
Schedule(() =>
{