mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
New: Improve validation messages
This commit is contained in:
@@ -13,7 +13,7 @@ namespace NzbDrone.Core.Validation.Paths
|
||||
_seriesService = seriesService;
|
||||
}
|
||||
|
||||
protected override string GetDefaultMessageTemplate() => "Path is already configured for another series";
|
||||
protected override string GetDefaultMessageTemplate() => "Path '{path}' is already configured for another series";
|
||||
|
||||
protected override bool IsValid(PropertyValidatorContext context)
|
||||
{
|
||||
@@ -22,6 +22,8 @@ namespace NzbDrone.Core.Validation.Paths
|
||||
return true;
|
||||
}
|
||||
|
||||
context.MessageFormatter.AppendArgument("path", context.PropertyValue.ToString());
|
||||
|
||||
dynamic instance = context.ParentContext.InstanceToValidate;
|
||||
var instanceId = (int)instance.Id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user