aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-12-08 18:19:27 -0600
committerGitHub <noreply@github.com>2025-12-08 18:19:27 -0600
commit0c3757f0e5ba0a309575b78f7f2f4ea214dd1373 (patch)
tree45c91fe822e348a95b0fdec25645fd39ea64feb4 /src/slskd/Core
parent6a1e3ada4224d9abb8d987eb5db022e01601c92a (diff)
parentf80fbac5eeda5901a106975446d0a11b7cbc38d6 (diff)
downloadslskd-0c3757f0e5ba0a309575b78f7f2f4ea214dd1373.tar.gz
Merge branch 'master' into copilot/add-upload-datetime-feature
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Data/Databases.cs2
-rw-r--r--src/slskd/Core/Options.cs6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Core/Data/Databases.cs b/src/slskd/Core/Data/Databases.cs
index f118ad2a..a5d51ea6 100644
--- a/src/slskd/Core/Data/Databases.cs
+++ b/src/slskd/Core/Data/Databases.cs
@@ -15,6 +15,8 @@
// along with this program. If not, see https://www.gnu.org/licenses/.
// </copyright>
+namespace slskd;
+
/// <summary>
/// A primitive type for Database names and a static value for each of them. And a list.
/// </summary>
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