Provide more context in exception messages

This commit is contained in:
Tyrrrz
2023-11-16 21:10:24 +02:00
parent a46bf9bf11
commit e89701e3f9
5 changed files with 33 additions and 19 deletions

View File

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