1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +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:
Bartłomiej Dach 2024-02-15 10:16:06 +01:00
parent e10c4c7079
commit 95e745c6fb
No known key found for this signature in database

View File

@ -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;