From 2e4d19671a3226546297e0abde2704fe7e6705ab Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 9 Apr 2022 02:01:19 +0300 Subject: [PATCH] Append channel name for export errors in GUI --- .../ViewModels/Components/DashboardViewModel.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs index 76e4bef9..8a4145e3 100644 --- a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs @@ -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 {