Commit 8facee8c authored by ale's avatar ale

Make the blacklist validation error slightly clearer

parent 31537566
Pipeline #1543 passed with stages
in 1 minute and 29 seconds
......@@ -135,7 +135,7 @@ type ValidatorFunc func(context.Context, string) error
func notInSet(set stringSet) ValidatorFunc {
return func(_ context.Context, value string) error {
if set.Contains(value) {
return errors.New("reserved value")
return errors.New("invalid value (blacklisted)")
}
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment