mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Show a better message when score submission fails due to system clock being set wrong
This commit is contained in:
parent
3f527081bd
commit
a7f9f50ce5
@ -132,7 +132,18 @@ namespace osu.Game.Screens.Play
|
|||||||
if (string.IsNullOrEmpty(exception.Message))
|
if (string.IsNullOrEmpty(exception.Message))
|
||||||
Logger.Error(exception, "Failed to retrieve a score submission token.");
|
Logger.Error(exception, "Failed to retrieve a score submission token.");
|
||||||
else
|
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);
|
Logger.Log($"You are not able to submit a score: {exception.Message}", level: LogLevel.Important);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user