From 9d052f940403298de8f221abff39abf64bfd949e Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 14 Sep 2022 21:59:22 +0300 Subject: [PATCH] Improve wording in CLI exception when output path is ambiguous Related to #929 --- DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs index c1621d8a..b01892bd 100644 --- a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs @@ -121,7 +121,8 @@ public abstract class ExportCommandBase : TokenCommandBase if (!isValidOutputPath) { throw new CommandException( - "Attempted to export multiple channels, but the output path is neither a directory nor a template." + "Attempted to export multiple channels, but the output path is neither a directory nor a template. " + + "If the provided output path is meant to be treated as a directory, make sure it ends with a slash." ); }