Append channel name for export errors in GUI

This commit is contained in:
Oleksii Holub 2022-04-09 02:01:19 +03:00
parent 5b4d88ca26
commit 2e4d19671a

View file

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