Improve exception text

This commit is contained in:
Dean Herbert 2018-09-14 11:58:23 +09:00
parent 24e0a984f0
commit be1365fb18
1 changed files with 2 additions and 2 deletions

View File

@ -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;