mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 13:30:57 +08:00
Display the correct error message on score submission failure
The server will return a valid error message in most cases here. We may eventually want to add some fallback message for cases an error may occur that isn't of [InvariantException](https://github.com/ppy/osu-web/blob/3169b33ccc4c540be5f20136393ad5f00d635ff9/app/Exceptions/InvariantException.php#L9-L10) type, but I'm not 100% sure how to identify these just yet.
This commit is contained in:
@@ -65,7 +65,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
{
|
||||
failed = true;
|
||||
|
||||
Logger.Error(e, "Failed to retrieve a score submission token.\n\nThis may happen if you are running an old or non-official release of osu! (ie. you are self-compiling).");
|
||||
Logger.Log($"You are not able to submit a score: {e.Message}", LoggingTarget.Information, LogLevel.Important);
|
||||
|
||||
Schedule(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user