mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Use better messaging for selected submission failure reasons
These have been cropping up rather often lately, mostly courtesy of linux users, but not only: https://github.com/ppy/osu/issues/26840 https://github.com/ppy/osu/issues/27008 https://github.com/ppy/osu/discussions/26962 so this is a proposal for slightly improved messaging for such cases to hopefully get users on the right track. The original error is still logged to network log, so there's no information loss.
This commit is contained in:
parent
e10c4c7079
commit
95e745c6fb
@ -140,7 +140,13 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
switch (exception.Message)
|
||||
{
|
||||
case "expired token":
|
||||
case @"missing token header":
|
||||
case @"invalid client hash":
|
||||
case @"invalid verification hash":
|
||||
Logger.Log("You are not able to submit a score. Please ensure that you are using the latest version of the official game releases.", level: LogLevel.Important);
|
||||
break;
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user