Append channel name for export errors in GUI

pull/853/head
Oleksii Holub 3 years ago
parent 5b4d88ca26
commit 2e4d19671a

@ -114,7 +114,9 @@ public class DashboardViewModel : PropertyChangedBase
}
catch (DiscordChatExporterException ex) when (!ex.IsFatal)
{
_eventAggregator.Publish(new NotificationMessage(ex.Message.TrimEnd('.')));
_eventAggregator.Publish(
new NotificationMessage(ex.Message.TrimEnd('.'))
);
}
catch (Exception ex)
{
@ -192,7 +194,9 @@ public class DashboardViewModel : PropertyChangedBase
}
catch (DiscordChatExporterException ex) when (!ex.IsFatal)
{
_eventAggregator.Publish(new NotificationMessage(ex.Message.TrimEnd('.')));
_eventAggregator.Publish(
new NotificationMessage(ex.Message.TrimEnd('.') + $" ({channel.Name})")
);
}
finally
{

Loading…
Cancel
Save