1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 06:09:59 +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
Unverified
+12 -1
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
Logger.Log($"You are not able to submit a score: {exception.Message}", level: LogLevel.Important);
{
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(() =>
{