Hide Popover after failed password attempt

Instead of throwing an error, just close the popover and let the user continue
This commit is contained in:
sh0ckR6
2021-09-07 16:54:21 -04:00
parent 87434333d2
commit b8a1ebb786
3 changed files with 13 additions and 7 deletions

View File

@ -87,7 +87,8 @@ namespace osu.Game.Screens.OnlinePlay.Components
currentJoinRoomRequest.Failure += exception =>
{
if (!(exception is OperationCanceledException))
// provide error output if the operation wasn't canceled and the error doesn't stem from an invalid password
if (!(exception is OperationCanceledException) && !((APIException)exception).Message.Equals("Invalid room password", StringComparison.Ordinal))
Logger.Log($"Failed to join room: {exception}", level: LogLevel.Important);
onError?.Invoke(exception.ToString());
};