1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Update failure messages

Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
This commit is contained in:
Jayden 2024-03-04 22:25:36 -05:00 committed by GitHub
parent 37e7a4dea7
commit cceb616a18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,14 +184,14 @@ namespace osu.Desktop
game.Window?.Raise();
if (!tryParseRoomSecret(args.Secret, out long roomId, out string? password))
Logger.Log("Failed to parse the room secret Discord gave us", LoggingTarget.Network, LogLevel.Error);
Logger.Log("Could not parse room from Discord RPC Client", LoggingTarget.Network, LogLevel.Important);
var request = new GetRoomRequest(roomId);
request.Success += room => Schedule(() =>
{
game.PresentMultiplayerMatch(room, password);
});
request.Failure += _ => Logger.Log("Couldn't find the room Discord gave us", LoggingTarget.Network, LogLevel.Error);
request.Failure += _ => Logger.Log($"Could not find room {roomId} from Discord RPC Client", LoggingTarget.Network, LogLevel.Important);
api.Queue(request);
}