Show an error when trying to export deleted channel

Closes #51
pull/70/head
Alexey Golub 6 years ago
parent 8678043f0d
commit 6fee160bc7

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

Loading…
Cancel
Save