1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 22:32:57 +08:00

Print username in case of generic network failure too

This commit is contained in:
Bartłomiej Dach 2021-09-12 12:56:36 +02:00
parent e511c2ef2b
commit c4627bed6d
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -279,7 +279,7 @@ namespace osu.Game.Online.Chat
var request = new GetUserRequest(content);
request.Success += OpenPrivateChannel;
request.Failure += e => target.AddNewMessages(
new ErrorMessage(e.InnerException?.Message == "NotFound" ? $"User '{content}' was not found." : "Could not fetch user."));
new ErrorMessage(e.InnerException?.Message == @"NotFound" ? $"User '{content}' was not found." : $"Could not fetch user '{content}'."));
api.Queue(request);
break;