From f435c1e2e58c16cf33098bab4f946bb7fa0c30be Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 23 Feb 2025 17:00:01 -0600 Subject: adjust validation messages --- src/slskd/Core/Options.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 440cd8a4..5c9c756c 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -2198,7 +2198,7 @@ namespace slskd if ((cmdIsSet && exeIsSet) || (!cmdIsSet && !exeIsSet)) { - yield return new ValidationResult($"One and only one of the fields {nameof(Command)} or {nameof(Executable)} may be specified for a single script"); + yield return new ValidationResult($"One and only one of the fields {nameof(Command)} or {nameof(Executable)} may be specified for a single script. If you intend to use the system shell, omit 'executable'. If you intend to use an executable other than the system shell, omit 'command' and specify either 'args' or 'args_list'."); } var argsIsSet = !string.IsNullOrWhiteSpace(Args); @@ -2206,7 +2206,7 @@ namespace slskd if (argsIsSet && argsListIsSet) { - yield return new ValidationResult($"Only one of the fields {nameof(Args)} or {nameof(ArgsList)} may be specified for a single script"); + yield return new ValidationResult($"Only one of the fields {nameof(Args)} or {nameof(ArgsList)} may be specified for a single script. Specify 'args' if you intend to construct a single quoted string yourself, and specify 'args_list' if you'd like slskd to handle quoting for you."); } } } -- cgit v1.2.3