mirror of https://github.com/ppy/osu
Improve exception text
This commit is contained in:
parent
24e0a984f0
commit
be1365fb18
|
@ -86,11 +86,11 @@ public void AddLink(string text, string url, LinkAction linkType = LinkAction.Ex
|
|||
case LinkAction.OpenChannel:
|
||||
try
|
||||
{
|
||||
channelManager.OpenChannel(linkArgument);
|
||||
channelManager?.OpenChannel(linkArgument);
|
||||
}
|
||||
catch (ChannelNotFoundException e)
|
||||
{
|
||||
Logger.Error(e, "It should not be possible that the user is able to click a invalid channel link.");
|
||||
Logger.Log($"The requested channel \"{linkArgument}\" does not exist");
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue