mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-23 14:33:58 +00:00
Append channel name for export errors in GUI
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user