Show an error when trying to export deleted channel

Closes #51
This commit is contained in:
Alexey Golub 2018-06-25 23:34:10 +03:00
parent 8678043f0d
commit 6fee160bc7

View file

@ -268,6 +268,10 @@ namespace DiscordChatExporter.Gui.ViewModels
{
MessengerInstance.Send(new ShowNotificationMessage("You don't have access to this channel"));
}
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.NotFound)
{
MessengerInstance.Send(new ShowNotificationMessage("This channel doesn't exist"));
}
Progress = 0;
IsBusy = false;