mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 20:13:20 +08:00
Print username in case of generic network failure too
This commit is contained in:
parent
e511c2ef2b
commit
c4627bed6d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user