diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-05 19:18:18 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-06 07:30:00 -0500 |
| commit | 5ed58b906b98c0f1b06147ed4db18c9bc2f1ffdf (patch) | |
| tree | a78841dea42b9abe73d538ff75382e457370067a /src/slskd/Common/Validation/RelativePathAttribute.cs | |
| parent | 62134e78472a51ef0becff9c0850f635933ab506 (diff) | |
| download | slskd-5ed58b906b98c0f1b06147ed4db18c9bc2f1ffdf.tar.gz | |
small tweaks
Diffstat (limited to 'src/slskd/Common/Validation/RelativePathAttribute.cs')
| -rw-r--r-- | src/slskd/Common/Validation/RelativePathAttribute.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Common/Validation/RelativePathAttribute.cs b/src/slskd/Common/Validation/RelativePathAttribute.cs index f691d4e5..ea2b627b 100644 --- a/src/slskd/Common/Validation/RelativePathAttribute.cs +++ b/src/slskd/Common/Validation/RelativePathAttribute.cs @@ -63,7 +63,7 @@ namespace slskd.Validation { if (!FileSafety.IsPathRelative(path, os: Injected ?? Compute.OperatingSystem())) { - return new ValidationResult($"The {validationContext.DisplayName} field must be a relative path on all operating systems."); + return new ValidationResult($"The {validationContext.DisplayName} field must be a relative path on the current operating system."); } return ValidationResult.Success; @@ -72,7 +72,7 @@ namespace slskd.Validation // OS == OperatingSystem.All or .Any; if (!FileSafety.IsPathRelative(path, os: OperatingSystem.Linux) || !FileSafety.IsPathRelative(path, os: OperatingSystem.Windows)) { - return new ValidationResult($"The {validationContext.DisplayName} field must be a relative path."); + return new ValidationResult($"The {validationContext.DisplayName} field must be a relative path on all operating systems."); } } |
