From 2149f8cfa2562b9c781647da8a192ecb37efaee7 Mon Sep 17 00:00:00 2001 From: Leonardo Mosquera Date: Sun, 9 Mar 2025 14:41:18 -0300 Subject: [PATCH] Also consider empty channel as a non error --- DiscordChatExporter.Core/Exporting/ChannelExporter.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/ChannelExporter.cs b/DiscordChatExporter.Core/Exporting/ChannelExporter.cs index 7f916704..8a755b78 100644 --- a/DiscordChatExporter.Core/Exporting/ChannelExporter.cs +++ b/DiscordChatExporter.Core/Exporting/ChannelExporter.cs @@ -30,10 +30,12 @@ public class ChannelExporter(DiscordClient discord) // Check if the channel is empty if (request.Channel.IsEmpty) { - throw new DiscordChatExporterException( + // FIXME: need to ensure an empty export file is created right here + + throw new ChannelNotExportedException( $"Channel '{request.Channel.Name}' " + $"of guild '{request.Guild.Name}' " - + $"does not contain any messages." + + $"does not contain any messages; an empty file will be created." ); }