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:
commit
696ecda398
@ -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(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user