mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Log token retrieval failures even when gameplay is allowed to continue
This commit is contained in:
parent
4dbac917fc
commit
c4dd23ed15
@ -76,6 +76,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
req.Success += r =>
|
||||
{
|
||||
Logger.Log($"Score submission token retrieved ({r.ID})");
|
||||
token = r.ID;
|
||||
tcs.SetResult(true);
|
||||
};
|
||||
@ -104,6 +105,12 @@ namespace osu.Game.Screens.Play
|
||||
this.Exit();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
// Gameplay is allowed to continue, but we still should keep track of the error.
|
||||
// In the future, this should be visible to the user in some way.
|
||||
Logger.Log($"Score submission token retrieval failed ({exception.Message})");
|
||||
}
|
||||
|
||||
tcs.SetResult(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user