mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-10 20:02:31 +00:00
Provide more context in exception messages
This commit is contained in:
@@ -105,7 +105,7 @@ public static class ExportWrapper
|
||||
if (message is null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Message '{messageId}' does not exist in the export of channel '{channelId}'."
|
||||
$"Message #{messageId} does not exist in the export of channel #{channelId}."
|
||||
);
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ public static class ExportWrapper
|
||||
if (message.ValueKind == JsonValueKind.Undefined)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Message '{messageId}' does not exist in the export of channel '{channelId}'."
|
||||
$"Message #{messageId} does not exist in the export of channel #{channelId}."
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user