aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-12-07 16:18:43 -0600
committerGitHub <noreply@github.com>2025-12-07 16:18:43 -0600
commit49bf81959177a2c3139d83fe3498c574bf325acd (patch)
tree76e4d1e91f8b1de41729c475f8a1f47231a4a183 /src/slskd/Core/Options.cs
parent3d8847a1a3eabc755695581cb5e628af96581102 (diff)
parent869c5535218a8fc7bff2c10ae73d59847b19b55f (diff)
downloadslskd-49bf81959177a2c3139d83fe3498c574bf325acd.tar.gz
Merge branch 'master' into statistics
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 254adcab..76dcd45c 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1252,6 +1252,12 @@ namespace slskd
return results;
}
+ if (string.IsNullOrWhiteSpace(File))
+ {
+ results.Add(new ValidationResult("The Enabled field is true, but no File has been specified."));
+ return results;
+ }
+
// loading/validating the entire list will be costly on low spec systems
// just make sure that we can detect a valid format and leave it at that
// if there's a problem with any of the entries, the load will fail and